[PATCH] Define std::to_chars and std::from_chars for C++17 (P0067R5, partial)
Jonathan Wakely
jwakely@redhat.com
Fri Apr 7 23:22:00 GMT 2017
On 07/04/17 19:14 -0400, Ed Smith-Rowland wrote:
>I think this is worth putting in as it gives us something to start with.
>
>We could backport additions from 8.
Yep, this will be experimental C++17 stuff (even if it's optionally
available for C++14 code if users choose to include a non-portable
header).
>I'm looking at libquadmath/strtod/*.c ... Scary stuff.
That respects the locale, which std::from_chars explicitly ignores,
but it's a lot of work nonetheless. I think we want to implement
Grisu3 and then have something else as a slower fallback for the cases
Grisu3 fails on.
>But I'll help ;-)
Great, thanks!
More information about the Libstdc++
mailing list