Re:The hidden compile-time cost of C++26 reflection
by surajrmal on Tuesday March 10, 2026 @09:36AM
(#47323076)
It also bloats binary size if you statically link libc++ because of localization, regardless if you care for it. This wasn't true for fmtlib because it doesn't support localization. stringstream has this same problem, but it's one of many reasons embedded has stuck with printf.
[ Parent
| on HN ]
Re:The hidden compile-time cost of C++26 reflection
by vitaut on Monday March 16, 2026 @02:56PM
(#47403190)
The binary bloat is also caused by unnecessary inlining and the linker eliminates most of it (but it's still annoying e.g. for godbolt). {fmt} supports a superset of std::format and std::print features including localization. stringstream's bloat is unrelated and mostly caused by large per-call binary code from concatenation-based API.