]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change `-numeric_limits::max` in .cmake file 18639/head
authorFederico Fernandez <fernandezerbes@gmail.com>
Mon, 7 Jul 2025 17:44:29 +0000 (19:44 +0200)
committerFederico Fernandez <fernandezerbes@gmail.com>
Mon, 7 Jul 2025 17:52:26 +0000 (19:52 +0200)
cmake/checks/check_01_cxx_features.cmake

index 896e056c08cff160d6a6b8f85a4ec1ad066933de..239383470429b5baa693182cb66f7c4ab744e900 100644 (file)
@@ -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<double>::max to a
+# exception is thrown if we convert std::numeric_limits<double>::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<double>::max();
+    const double lower_bound = std::numeric_limits<double>::lowest();
 
     description << lower_bound;
 

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.