Skip to content

Commit

Permalink
Use a feature test macro to check for std::type_identity.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Mar 20, 2023
1 parent 151ed08 commit b51ef3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/checks/check_01_cxx_features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b51ef3f

Please sign in to comment.