Is it possible to write a method that takes a stringstream and have it look something like this,
void method(string st
Since you know you've got a stringstream, just cast the return value:
stringstream
stringstream var; printStringStream(static_cast(var << whatever));