Re: [PATCH] Add header implementation of std::to_string for integers (PR libstdc++/71108)

2017-05-29 Thread Adrian Wielgosik
> Assuming that the locale issue isn't a problem, can that be reused? The to_chars patch uses C++14 features, while to_string is C++11. If that was solved, it probably could be used. However, as far as I know, simply using to_chars in to_string would technically be suboptimal, because it needs thr

Re: [PATCH] Add header implementation of std::to_string for integers (PR libstdc++/71108)

2017-05-28 Thread Adrian Wielgosik
> so a conforming program could notice the difference by either calling > std::setlocale. Unless I missed or misunderstood something about locale (please let me know if I did), I don't know of any way for locale to affect %d and its integer friends.

[PATCH] Add header implementation of std::to_string for integers (PR libstdc++/71108)

2017-05-27 Thread Adrian Wielgosik
separately, or is mentioning it here enough? 2017-05-27 Adrian Wielgosik PR libstdc++/71108 * libstdc++-v3/include/ext/string_conversions.h: (__int_to_string, __format_uint): New. * libstdc++-v3/include/bits/basic_string.h: Use the new function. libstdc++-v3/include/bits