bug?? strstream vs stringstream

Lars Gullik Bjønnes larsbj@lyx.org
Wed Sep 13 03:38:00 GMT 2000


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


More information about the Libstdc++ mailing list