I want to use this snippet from Mr-Edd\'s iostreams article to print std::clog somewhere.
#include #include #include
If you just want to get the contents of the ostringstream, then use its str() member. For example:
string s = oss.str();