Add c++2b as a permitted language version (#156)

This commit is contained in:
Chloe 2023-01-11 16:09:19 +00:00 committed by GitHub
commit e751294b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@ enum class cpp_standard
cpp_17,
cpp_2a,
cpp_20,
cpp_2b,
cpp_latest = cpp_standard::cpp_14, //< The latest supported C++ standard.
};
@ -52,6 +53,8 @@ inline const char* to_string(cpp_standard standard) noexcept
return "c++2a";
case cpp_standard::cpp_20:
return "c++20";
case cpp_standard::cpp_2b:
return "c++2b";
}
DEBUG_UNREACHABLE(detail::assert_handler{});