Original Post
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.