This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
RE: ostringstream buffers (was Re: stringstream status)
- To: "Lib3 (E-mail)" <libstdc++@sourceware.cygnus.com>
- Subject: RE: ostringstream buffers (was Re: stringstream status)
- From: "Edwards, Phil" <pedwards@ball.com>
- Date: Thu, 27 May 1999 11:53:52 -0600
+ 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?
Let me toss out an idea: I'll post this problem to comp.std.c++ and
we'll get some feedback before anything gets decided? The more I think
about it, the more I become convinced that Stroustrup's example above
is the sane way to go -- which makes me wonder even more what was the
rationale behind the committee's decision (i.e., what am I missing).
Phil
"...the road to good intentions must always be paved with hell."
- Igor Stravinsky