Search code examples
ubuntuc++20stdformat

No <format> header file in /usr/include/c++/*


I want to use std::format from c++20.

Installed g++12, libc++-12-dev, libstdc++-12-dev, but the header file is still missing. Ubuntu 22.04


Solution

  • As of g++ 12.2 <format> is not yet included - but looking at what's on g++ trunk in Compiler Explorer makes it very likely that it will be included in the next release of g++.