]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: do not use std::is_pod in C++11 check 14990/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2023 02:21:07 +0000 (21:21 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2023 02:21:07 +0000 (21:21 -0500)
Some gcc versions erroneously warn about std::is_pod being deprecated
even though they are running in C++11 mode.

cmake/checks/check_01_cxx_features.cmake

index 4a7319c79c2e07033fea7e109bd3fc826a0a9cbc..43cb4526f75eb6941752d0a708f0841772aa11d4 100644 (file)
@@ -292,8 +292,6 @@ macro(_test_cxx14_support)
      (void) m0;
      constexpr auto m1 = std::is_standard_layout<double>::value;
      (void) m1;
-     constexpr auto m2 = std::is_pod<double>::value;
-     (void) m2;
     }
     "
     DEAL_II_HAVE_CXX11_FEATURES)

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.