]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid MSVC warnings
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 10 Dec 2018 22:38:12 +0000 (23:38 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 10 Dec 2018 22:38:12 +0000 (23:38 +0100)
bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp
include/deal.II/base/patterns.h

index a5197f07ee3c3c78ca6c876f2a6b2c430dcf840c..200d39df5e1346a84b818d5a5f8a04322a7ed2bf 100644 (file)
 #endif
 
 //
-// tjhei: upgrade supported MSVC version to 19.13 (last checked 19.13.26131.1)
+// masterleinad: upgrade supported MSVC version to 19.16 (last checked 19.16.27024.1)
 // Boost repo has only 19.10:
 // last known and checked version is 19.10.24629 (VC++ 2017 RC):
-#if (_MSC_VER > 1913)
+#if (_MSC_VER > 1916)
 #  if defined(BOOST_ASSERT_CONFIG)
 #     error "Unknown compiler version - please run the configure tests and report the results"
 #  else
index a5df1a3a334c29d1cc55573a0eab6e7ad0291192..9a4bcccd8936d0645b699e768e78d621793161e9 100644 (file)
@@ -1500,11 +1500,11 @@ namespace Patterns
           return std_cxx14::make_unique<Patterns::Bool>();
         else if (std::is_integral<T>::value)
           return std_cxx14::make_unique<Patterns::Integer>(
-            static_cast<int>(std::numeric_limits<T>::min()),
+            static_cast<int>(std::numeric_limits<T>::lowest()),
             static_cast<int>(std::numeric_limits<T>::max()));
         else if (std::is_floating_point<T>::value)
           return std_cxx14::make_unique<Patterns::Double>(
-            -std::numeric_limits<T>::max(), std::numeric_limits<T>::max());
+            std::numeric_limits<T>::lowest(), std::numeric_limits<T>::max());
 
         Assert(false, ExcNotImplemented());
         // the following line should never be invoked

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.