Merge branch 'foonathan:main' into main

This commit is contained in:
Joey Yakimowich-Payne 2023-01-30 17:21:08 -07:00 committed by GitHub
commit c125883083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 161 additions and 11 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");