string's operator == fails for empty string

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Sat Nov 4 04:55:00 GMT 2000


Samuel.Krempp@crans.ens-cachan.fr (Samuel Krempp) writes:

|  I noticed that the empty string "" is found equal to any string, when using libstdc++-v2.
| When using v3 the behaviour is normal.

Samy,

Thanks for your report.

We're are planning to make V3 the default, at the end of the next
week.  So, hopefully you won't be annoyed by V2 doing silly things
with your strings :-)  But I won't mind to apply a patch against V2 to
make it work properly.

Best,

-- Gaby


More information about the Libstdc++ mailing list