detect C++23 standard

This commit is contained in:
Axel Kohlmeyer
2024-10-03 07:38:44 -04:00
parent adebe773d0
commit a9dd61f62e

View File

@ -314,8 +314,10 @@ std::string platform::os_info()
std::string platform::cxx_standard() std::string platform::cxx_standard()
{ {
#if __cplusplus > 202002L #if __cplusplus > 202302L
return "newer than C++20"; return "newer than C++23";
#elif __cplusplus == 202302L
return "C++23";
#elif __cplusplus == 202002L #elif __cplusplus == 202002L
return "C++20"; return "C++20";
#elif __cplusplus == 201703L #elif __cplusplus == 201703L