I have old c++ code using strstream and using pcount and freeze methods of the same. I want to use stringstream class instead. What are the substitute for pcount and freeze methods of strstream? The code is something like this:
strstream log; // this will change to: stringstream log;
if (log.pcount()) //????
{
log << ends;
*myLog << log.str() << logmsg;
}
log.freeze(0); //????