We already support to_chars and from_chars back to C++14.
Tweak the code so that we can use it from C++11.
The motivation for this is D59178.
I really don't want *another* "integer to string" implementation in libc++.
Paths
| Differential D59598
Make the `<charconv>` header usable with C++11 ClosedPublic Authored by mclow.lists on Mar 20 2019, 8:36 AM.
Details
Diff Detail Event Timelinelichray added inline comments. This revision is now accepted and ready to land.Mar 20 2019, 9:08 AM Comment Actions This is one acceptable reason to backport functionality to C++03 IMO. I'd rather have it be implementation details using reserved names, but this would add a lot of complexity. Comment Actions
I'm not going back to C++03 here. Just C++11. Comment Actions
Yeah, I don't know why I said that. But you get the point -- I'm talking about back porting at all, which I dislike.
Revision Contents
Diff 191499 libcxx/include/charconv
libcxx/test/std/utilities/charconv/charconv.from.chars/integral.bool.fail.cpp
libcxx/test/std/utilities/charconv/charconv.from.chars/integral.pass.cpp
libcxx/test/std/utilities/charconv/charconv.to.chars/integral.bool.fail.cpp
libcxx/test/std/utilities/charconv/charconv.to.chars/integral.pass.cpp
libcxx/test/support/charconv_test_helpers.h
|
Using auto here is fine.