Wouldn't you need to do

Code:
stringstream foo;

foo.str( ).clear( );
?

But then, I'm a bit rusty on stringstreams...