Compiler independent wtoi function
I'm wondering whether if there's a c++ standard counterpart of the MSVC++ _wtoi function which would be compiler independent.
_wtoi works fine for me at the moment but I'm going to be compiling my program on a linux machine with possibly gcc later on and I don't want to hit a snag on this score.
Or should I pursue this workaround that still isn't working
Code:
unsigned integer i;
wistringstream wss;
wstring ws;
ws = some_wide_character_that_I_get_from_elsewhere;
wss.str(ws);
wss >> i;
If _wtoi works regardless of the compiler/system, I'll go with it. But if not, advice would be appreciated.