]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a feature test macro to check for std::type_identity. 14915/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 20 Mar 2023 20:19:24 +0000 (14:19 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 20 Mar 2023 20:19:24 +0000 (14:19 -0600)
cmake/checks/check_01_cxx_features.cmake

index b6b9a0b28a0300f17f03d803dac250b2c6635b55..0bd45a0b1deeb81c885f4f74359af535f4b80c34 100644 (file)
@@ -81,6 +81,10 @@ macro(_test_cxx20_support)
     #  error \"insufficient support for C++20\"
     #endif
 
+    #if !(defined __cpp_type_identity) || (__cpp_lib_type_identity < 201806)
+    #  error \"insufficient support for C++20\"
+    #endif
+
 
     // Test concepts and requires clauses
     template <int dim, int spacedim>

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.