On Wed, Oct 8, 2025 at 5:11 PM Matt Borland via Boost boost@lists.boost.org wrote:
Without a constructor or conversion mechanism from string, when using decimal to store numbers received off the wire one would either have to round trip through (lossy) strtod or write a conversion function, which is tiresome.
The best way to do this (and how current users are) is via the <charconv> functions[1].
I'd like it to allow a leading plus sign. Wouldn't it be more convenient to use the `strtod` family (e.g. `strtod64`) instead of `from_chars`?
I think Peter covers the argument against that above [1]. If we use issues as a proxy for how much a feature is being used <charconv> followed by {fmt} are being used way more extensively than the strtod family. Matt [1] https://lists.boost.org/archives/list/boost@lists.boost.org/message/SK43DRVG...