This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- Additional Comments From pcarlini at suse dot de  2004-05-05 18:42 -------
> The standard clearly says that lt() should match operator<().  I can
> see what Paolo wants, but that is different from what is specified.

Indeed, *many* messages ago, I replied the first to submitter writing that
perhaps the standard should be ""improved"".

> I think any reasoning based on a ghost consistency with C string
> is just going to make the issue messier and more confused.

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.

-- 


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


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