This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Define std::to_chars and std::from_chars for C++17 (P0067R5, partial)


* Jonathan Wakely:

> 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.

We'd also want these algorithms in glibc, so that C programmers can
write proper JSON serializers.

(It's silly how many of them produce invalid JSON in certain locales,
and how few can properly round-trip all numbers.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]