After reading Is <codecvt>
not a standard header? I am not sure what to do as my Windows version of the codebase uses <codecvt>
to convert between wide strings and strings. I currently use GCC 4.7 for Linux version of my code. Is <codecvt>
also missing in the latest GCC? What would be a workaround?
BTW, as it's stated here the following code wouldn't work with GCC:
wstring ws = L"hello";
string ns(ws.begin(), ws.end());