I\'ve tried several things already,
std::stringstream m; m.empty(); m.clear();
both of which don\'t work.
These do not discard the data in the stringstream in gnu c++
m.str(""); m.str() = ""; m.str(std::string());
The following does empty the stringstream for me:
m.str().clear();