
22 Apr
2009
22 Apr
'09
11:56 a.m.
I'm trying to compile my project in MS Visual Studio 2008 with UNICODE and _UNICODE symbols defined. This automatically makes std::string resolve to std::wstring.
Neither UNICODE nor _UNICODE make std::string to be std::wstring. These are defined as follows: typedef basic_string<char, char_traits<char>, allocator<char> > string; typedef basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>
wstring;
Probably you've got some #define in your own code.