ostrstream problem
John Love-Jensen
eljay@adobe.com
Wed Sep 28 12:22:00 GMT 2005
Hi Ernest,
I second what Peter said.
Plus....
You should be aware in switching from ostrstream to std::ostringstream...
std::ostringstream does the memory management for you. You don't need to
trouble yourself with ostrstream's memory management burden. That alone is
worth switching instead of trying to use the obsolete ostrstream!
std::ostringstream's backing store is a std::string, so you don't need the
ends terminator.
Sincerely,
--Eljay
More information about the Gcc-help
mailing list