Other caveats:
- You must include the header that defines
std::format
. - Clang doesn't use C++20 by default, so you must specify it explicitly.
- Clang uses libstdc++ standard library on Linux by default (for compatibility with shared libraries), so in such case you won't be using the Clang's standard library by default, and libstdc++ hasn't implemented text formatting yet.