|
-
October 10th, 2008, 02:59 PM
#9
Re: How to clear out a stringstream
That would just empty out the temporary string returned by the stringstream (if it was allowed at all since the string would be temporary). It wouldn't have any effect on the stream itself or the program.
A container class's clear() function (like what you used) is different than a stream class's clear() function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|