Add basic C++20 support
This commit is contained in:
parent
019163b585
commit
ce218dfb8a
4 changed files with 73 additions and 25 deletions
|
|
@ -22,8 +22,10 @@ enum class cpp_standard
|
|||
cpp_03,
|
||||
cpp_11,
|
||||
cpp_14,
|
||||
|
||||
cpp_1z, //< Upcoming C++17 (experimental).
|
||||
cpp_1z,
|
||||
cpp_17,
|
||||
cpp_2a,
|
||||
cpp_20,
|
||||
|
||||
cpp_latest = cpp_standard::cpp_14, //< The latest supported C++ standard.
|
||||
};
|
||||
|
|
@ -44,6 +46,12 @@ inline const char* to_string(cpp_standard standard) noexcept
|
|||
return "c++14";
|
||||
case cpp_standard::cpp_1z:
|
||||
return "c++1z";
|
||||
case cpp_standard::cpp_17:
|
||||
return "c++17";
|
||||
case cpp_standard::cpp_2a:
|
||||
return "c++2a";
|
||||
case cpp_standard::cpp_20:
|
||||
return "c++20";
|
||||
}
|
||||
|
||||
DEBUG_UNREACHABLE(detail::assert_handler{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue