
7 Oct
2025
7 Oct
'25
12:52 p.m.
Am 07.10.25 um 10:15 schrieb Gennaro Prota via Boost:
Given this shift, what behavior would you prefer for to_static_[w]string()?
a) Match std::to_[w]string() and adopt the new behavior when compiling under C++26.
b) Preserve the legacy behavior with fixed precision (6 digits) across all standard versions.
c) Always behave as if using std::format(), even in pre-C++26 builds (breaking change).
I'd go with option a) I think for users it is reasonable to expect `std::to_string(value) == boost::to_static_string(value)` holds, even though it can cause confusion when changing standard modes. However this allows to (gradually) use boost::static_string as a drop-in for std::string without causing breakages