I found this topic Convert between string, u16string & u32string and the solution (which looks really great) works only using libc++ not libstdc++. Currently libc++ is not usable - it is hard to compile and dont work good on Windows.
Is there any method to convert between these representations using C++11 and libstdc++, which works on all platforms?
I'm especially interested in converting u32_string to string (utf8) and vice versa.