C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 5th, 2006, 02:10 PM
ubergeek ubergeek is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2005
Posts: 600 ubergeek User rank is Private First Class (20 - 50 Reputation Level)ubergeek User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 40 m 27 sec
Reputation Power: 4
Send a message via AIM to ubergeek
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Unicode stringstream?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT