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
I think a function called to_string really, really, really should return a std::string.
to_string
And then all this junk can be replaced by
std::string FieldData::to_string() const { return "Invalid Field Type"; }