r/cpp • u/alberto-m-dev • Jun 26 '26
Improvements to std::format in C++26
https://mariusbancila.ro/blog/2026/06/19/improvements-to-stdformat-in-c26/
91
Upvotes
r/cpp • u/alberto-m-dev • Jun 26 '26
View all comments
Show parent comment
9
u/agritite Jun 26 '26 edited Jun 26 '26
You must have misunderstood the line
The format string of std::format or std::print must be a constant expression. That's just the premise for that paragraph.