How do you define "wstring"?
To use wstring
, you must add #include<string>
and preferably use its full name std::wstring
.
UPDATE:
In case your compiler doesn't support it for some reason std::wstring
, you can try the following typedef
(taken directly from bits/string_fwd.h
and configured to add the missing one std::
).
typedef std::basic_string<wchar_t> wstring;
Note that it depends on the wchar_t
defined and according to this :
In C ++, wchar_t is a separate fundamental type (and therefore not defined in any other header).
If your compiler doesn't support wchar_t
there is no (easy) way to define it as far as I know.
source to share