Alternative to missing <codecvt> header

Sadly, MSVC is ahead of GCC - libstdc++ does not yet support the <codecvt> header, so we can't do this in GCC:
http://stackoverflow.com/a/4786824/1959975
So what cross-platform standard alternative is there?
I think LLVM's libc++ has fully implemented the C++11 standard library. You could see if that works for you.

EDIT: Otherwise, you can implement a function yourself if you don't feel like changing standard libraries. :P

-Albatross
Last edited on
Yes, I use libc++ (with clang++) for my <codecvt> needs on Linux.. Otherwise, there's boost.locale.
Last edited on
Unfortunately libc++ is not supported on Windows, and using boost is completely out of the question for this specific project (but perfectly within reason everywhere else).

But, this topic is solved anyway.
Last edited on
Topic archived. No new replies allowed.