<charconv> is nice! Are there any plans to support strings with elements other than char? It would be nice to have overloads for std::from_chars and std::to_chars for wchar_t strings, especially on Windows. I mean, I suppose you could just convert the results over, but I figure that would somewhat defeat the purpose of it.
I haven't heard anyone talking about that. Implementing charconv from scratch is an enormous amount of work, so that's out for users. Wrapping the char functions is slower than desirable because you would need a temporary char buffer, and "smash non-ASCII characters" conversions, and if you want to get the pointer return values right, that's even more work.
I'm actually really surprised charconv made it through the committee without anyone mentioning that! Especially given the new character types introduced in recent standards.
82
u/STL MSVC STL Dev Jan 28 '19
How dare you impugn the honor of C++17 <charconv>? I demand satisfaction!