 
            On 10/22/2025 5:29 PM, Alexander Grund via Boost wrote:
Am 22.10.25 um 16:52 schrieb Gennaro Prota via Boost:
On 10/7/2025 10:15 AM, Gennaro Prota wrote:
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).
d) Other.
Although my preference was for c), too, I ultimately went with a), because the former would have required to basically reimplement std::format() inside StaticString, which felt like a bit of overkill :-). If there aren't any objections, I'll merge the changes into master, in time for Boost 1.90.
IIRC c) is basically what `to_chars` does. So if using Boost.Charconv for pre-C++17 would allow that. This way you don't need to implement anything by yourself. Am I missing anything or did you want to avoid that dependency?
Yes, that would mean having a header-only library (StaticString) depend on a compiled one (Charconv). -- Gennaro Prota <https://prota.dev>