This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: ostringstream buffers (was Re: stringstream status)
According to Edwards, Phil:
> - Contrary to the example in Stroustrup, 3rd.ed., the zero-arg ctor
> never does anything. Which, as you say, is what the standard seems to
> say. This is (as they say in the trade) a real bummer [...]
Well, could we please go with the sane:
> ostringstream o;
> o << stuff << more stuff << stuff << ends;
> return o.str();
... even if it seems to have been overlooked in the standard?
--
Chip Salzenberg - a.k.a. - <chip@perlsupport.com>
"When do you work?" "Whenever I'm not busy."