I\'ve tried several things already,
std::stringstream m; m.empty(); m.clear();
both of which don\'t work.
This should be the most reliable way regardless of the compiler:
m=std::stringstream();