detect C++20 standard

This commit is contained in:
Axel Kohlmeyer
2021-09-14 11:56:43 -04:00
parent c8170c3388
commit b1092cfa4e

View File

@ -1441,8 +1441,10 @@ std::string Info::get_mpi_info(int &major, int &minor)
std::string Info::get_cxx_info()
{
#if __cplusplus > 201703L
return "newer than C++17";
#if __cplusplus > 202002L
return "newer than C++20";
#elif __cplusplus == 202002L
return "C++20";
#elif __cplusplus == 201703L
return "C++17";
#elif __cplusplus == 201402L