[Bug libstdc++/15276] Erroneous Comparisons of Negative Characters

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Wed May 5 18:56:00 GMT 2004


------- Additional Comments From pcarlini at suse dot de  2004-05-05 18:56 -------
> About this, we slightly disagree: f.i., I don't think that eliding 21.1.3.1,p6
> would be such a big win. Having to renounce to the support of well optimized
> memcmp and wmemcmp it's not a little thing... Also, basic_string heavily
> *interacts* with char arrays and C strings, always, and I don't think doing
> the comparisons two different ways is a big win.

Sorry about that, actually is wrong. If we could really elide 21.1.3.1,p6, then,
as hinted by Martin (I think), lt() could always compare unsigned, irrespective
of builtin operator<(), and that would do the trick! Sorry again.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276



More information about the Gcc-bugs mailing list