C++11 introduced ways to perform conversion between raw byte-strings, represented by std::string
, and unicode strings, like std::u32string
.
However, looking at the page on cppreference, I see that the whole thing gets deprecated in C++17 (namely, std::wstring_convert
and everything from the <codecvt>
header).
My attempts at finding a C++17-way to do the conversion failed: there seems to be no replacement, just deprecation of functionality.
So, my question is: what is the correct standard way to perform the aforementioned conversion in C++17, and does it exist at all?