stringstream ss;
ss.str("");

... era quello che intendevi ?