A Short Question on Stream

Will using stringstream cause any problems running by root?

stringstream ssname;
stringname<<"I "<<"am "<<"hungry.";
TString name;
name = ssname.str();

I could see it running fine with as long as TString is used, but I am afraid including my not be compatible with root (maybe cause memory leak?).

Thanks for suggestions.

I don’t see why it would. Where does your concern arise from to begin with?

Well, I was including string class at first, which caused seg fault (didn’t think root would actually use TString_t). As long as stringstream is compatible with TStreamer, then I probably won’t look too much into the later. Thanks.