
March 5th, 2006, 02:10 PM
|
|
Contributing User
|
|
Join Date: Jan 2005
Posts: 600

Time spent in forums: 2 Days 22 h 40 m 27 sec
Reputation Power: 4
|
|
|
SOLVED Unicode stringstream?
SOLVED http://www.gidforums.com/t-8870.html
I am trying to make a unicode app, but running into all sorts of problems. First of all, "wostringstream" doesn't exist, so I typedef'd it myself:
Code:
#include <sstream>
typedef std::basic_ostringstream<wchar_t> tostringstream;
But then when I try to use tostringstream in my code:
Code:
tostringstream str;
I get lots of errors, all having to do with char_traits:  os_type, or more specifically, lack thereof
Code:
In instantiation of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >':
...
67 C:\Dev-Cpp\include\c++\3.4.2\bits\basic_ios.h no type named `pos_type' in `struct std::char_traits<wchar_t>'
These errors go on down the line of inheritance, with each class down to basic_ostringstream complaining about the lack of pos_type.
What am I doing wrong?
Dev-C++ 4.9.9.2 / Windows XP SP2 / Yes I #define'd UNICODE and _UNICODE before including my headers
Last edited by ubergeek : March 7th, 2006 at 08:18 PM.
Reason: solved
|