C++20 error (projucer export)

when setting the c++ option to “latest” or “cpp20” the exported setting is wrong and building will fail with xcode 12:

error: invalid value 'c++20' in '-std=c++20'
note: use 'c++2a' for 'Working draft for ISO C++ 2020' standard

Have you tried Xcode 13 out of interest?

no

Are you aware that there is only partial C++20 support for Apple Clang?

We still specify C++ 20 as standard in our CMake projects and at least it enables the limited set of supported features using Apple Clang 12.2 like the partial concepts support. But I cannot say which flags are actually set by CMake in the background

1 Like