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
38
u/fdwr fdwr@github 🔍 Jun 26 '26
Wait, is that really true, that the uppercase also capitalizes the 'x'? 🙃 The usual norm for hex numbers is 0x12AB (hex constants, stack traces, hex editors...), not 0X12AB or 0x12ab. So if the article is accurate, then none of the pointer defaults fit the most common case, meaning I'll continue to use
0x{:08X}.