Just a quick question here guys. I\'ve been searching to no avail so far.
A bit more info here:
stringstream report_string; report_string << \
This method is efficient and should work with output strings as well:
ostringstream report_string; if (report_string.tellp() == 0) { // do something }