How do I \"reset\" the state of a stringstream to what it was when I created it?
int firstValue = 1; int secondValue = 2; std::wstringstream ss; ss <<
This is the way I usually do it:
ss.str(""); ss.clear(); // Clear state flags.