This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: bug?? strstream vs stringstream
- To: Rob Willis <rob at e-critical dot com>
- Subject: Re: bug?? strstream vs stringstream
- From: larsbj at lyx dot org (Lars Gullik Bjønnes)
- Date: 13 Sep 2000 12:38:43 +0200
- Cc: libstdc++ at sources dot redhat dot com
- References: <39BF33F1.C7BC9BE6@e-critical.com>
Rob Willis <rob@e-critical.com> writes:
| Output:
|
| Size of: 123456789 = 10 // ?? huh ??
| Size of: 123456789 = 9 // makes sense
|
| So is this a bug or a "feature"... I'm using an older image of egcs
| (egcs-20000612).
A stringstream can have '\0' chars in it. (and you put one there with
std::ends;)
Lgb