From: Federico Fernandez Date: Mon, 7 Jul 2025 17:44:29 +0000 (+0200) Subject: Change `-numeric_limits::max` in .cmake file X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18639%2Fhead;p=dealii.git Change `-numeric_limits::max` in .cmake file --- diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index 896e056c08..2393834704 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -436,7 +436,7 @@ unset_if_changed(CHECK_CXX_FEATURES_FLAGS_SAVED # Check that we can use feenableexcept through the C++11 header file cfenv: # # The test is a bit more complicated because we also check that no garbage -# exception is thrown if we convert -std::numeric_limits::max to a +# exception is thrown if we convert std::numeric_limits::lowest to a # string. This sadly happens with some compiler support libraries :-( # # - Timo Heister, 2015 @@ -451,7 +451,7 @@ set(_snippet { feenableexcept(FE_DIVBYZERO|FE_INVALID); std::ostringstream description; - const double lower_bound = -std::numeric_limits::max(); + const double lower_bound = std::numeric_limits::lowest(); description << lower_bound;