I have this code block as written with strstream. And I converted it to sstream as below. I\'m not sure, but I think printStream->str()
strstream
sstream
printStream->str()
Change the return type to std::string and return a std::string object directly.
std::string