From: Daniel Arndt Date: Mon, 10 Dec 2018 22:38:12 +0000 (+0100) Subject: Avoid MSVC warnings X-Git-Tag: v9.1.0-rc1~497^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56a8ff018f0cae5f935ed72a175b08724fbe96b;p=dealii.git Avoid MSVC warnings --- diff --git a/bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp b/bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp index a5197f07ee..200d39df5e 100644 --- a/bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp +++ b/bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp @@ -294,10 +294,10 @@ #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 diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index a5df1a3a33..9a4bcccd89 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1500,11 +1500,11 @@ namespace Patterns return std_cxx14::make_unique(); else if (std::is_integral::value) return std_cxx14::make_unique( - static_cast(std::numeric_limits::min()), + static_cast(std::numeric_limits::lowest()), static_cast(std::numeric_limits::max())); else if (std::is_floating_point::value) return std_cxx14::make_unique( - -std::numeric_limits::max(), std::numeric_limits::max()); + std::numeric_limits::lowest(), std::numeric_limits::max()); Assert(false, ExcNotImplemented()); // the following line should never be invoked