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

@ -310,6 +310,8 @@ try
config.set_flags(cppast::cpp_standard::cpp_2a, flags);
else if (options["std"].as<std::string>() == "c++20")
config.set_flags(cppast::cpp_standard::cpp_20, flags);
else if (options["std"].as<std::string>() == "c++2b")
config.set_flags(cppast::cpp_standard::cpp_2b, flags);
else
{
print_error("invalid value '" + options["std"].as<std::string>() + "' for std flag");