This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug?? strstream vs stringstream


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]