Visual Studio C++ 2015 std::codecvt with char16_t or char32_t
Old question, but for future reference: this is a known bug in Visual Studio 2015, as explained in the latest post (January 7th 2016) in this thread of MSDN Social. The workaround for your example looks like this (I implemented your method as a free function for simplicity): #include <codecvt> #include <locale> #include <string> #include … Read more