Skip to main content
gamedev.net
🔒 Locked

String Streams :: STL

Started by Zipster Jan 12, 2003 at 3:38 PM 0 replies 950+ views
Original Post
Zipster
Zipster
I''ve been using string streams for quite a while now, but one thing I''ve never been able to do is clear an ostringstream. Once I put something into the stream, it simply won''t leave. I''ve tried flush, but it has no effect. I''m out of ideas. I thought of trying to set the stream position to 0, and hopefully it would overwrite what''s there whenever I insert more stuff, but I''m not sure about characters that are there but not overwritten. I know this is probably such a simple solution that I am overlooking, but I haven''t had any success.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.