I want to reset an ostringstream so that:
ostringstream oss;
oss << "foo ";
cout << oss.str();
// what should go here ?
oss << "bar";
cout << oss.str();
issues
foo bar
and not
foo foo bar
?
(anyway, I am not sure if this is the right way to use it)
Thanks.