]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid undefined references in AD::NumberTraits 5522/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 23 Nov 2017 14:35:06 +0000 (15:35 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 23 Nov 2017 14:35:06 +0000 (15:35 +0100)
include/deal.II/differentiation/ad/ad_number_traits.h

index 810b53d59fa1977eb3772770c36753cbbe55d20c..a1a98589cc9d5f4e4edd3582ce4aacc31b7b8720 100644 (file)
@@ -836,7 +836,7 @@ namespace Differentiation
        * The number of directional derivatives that can be
        * taken with this auto-differentiable number
        */
-      static const unsigned int         n_supported_derivative_levels
+      static constexpr unsigned int     n_supported_derivative_levels
       = internal::ADNumberInfoFromEnum<
         typename internal::RemoveComplexWrapper<ScalarType>::type, ADNumberTypeCode
       >::n_supported_derivative_levels;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.