]> https://gitweb.dealii.org/ - dealii.git/commitdiff
qualify namspace for MSVC 14152/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 21 Jul 2022 14:12:03 +0000 (10:12 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 21 Jul 2022 15:00:18 +0000 (11:00 -0400)
otherwise MSVC tries to use
numbers::internal from signaling_nan.h

include/deal.II/base/numbers.h

index 2832dad638e2bca14e0a780e5af5dd1ded451374..e3a5a00cf3633efc5a45676c7da97585cf23bb00 100644 (file)
@@ -836,8 +836,8 @@ namespace numbers
   values_are_equal(const adouble &value_1, const Number &value_2)
   {
     // Use the specialized definition for two ADOL-C taped types
-    return values_are_equal(value_1,
-                            internal::NumberType<adouble>::value(value_2));
+    return values_are_equal(
+      value_1, dealii::internal::NumberType<adouble>::value(value_2));
   }
 
 
@@ -892,7 +892,7 @@ namespace numbers
   {
     // Use the specialized definition for two ADOL-C taped types
     return value_is_less_than(value_1,
-                              internal::NumberType<adouble>::value(value_2));
+                              ::internal::NumberType<adouble>::value(value_2));
   }
 
 
@@ -912,8 +912,8 @@ namespace numbers
   value_is_less_than(const Number &value_1, const adouble &value_2)
   {
     // Use the specialized definition for two ADOL-C taped types
-    return value_is_less_than(internal::NumberType<adouble>::value(value_1),
-                              value_2);
+    return value_is_less_than(
+      dealii::internal::NumberType<adouble>::value(value_1), value_2);
   }
 
 #endif
@@ -923,7 +923,7 @@ namespace numbers
   constexpr bool
   values_are_equal(const Number1 &value_1, const Number2 &value_2)
   {
-    return (value_1 == internal::NumberType<Number1>::value(value_2));
+    return (value_1 == dealii::internal::NumberType<Number1>::value(value_2));
   }
 
 
@@ -947,7 +947,7 @@ namespace numbers
   inline bool
   value_is_less_than(const Number1 &value_1, const Number2 &value_2)
   {
-    return (value_1 < internal::NumberType<Number1>::value(value_2));
+    return (value_1 < dealii::internal::NumberType<Number1>::value(value_2));
   }
 
 

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.