This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin 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] |
On Sun, 2003-03-16 at 08:48, Robert Collins wrote: > On Sat, 2003-03-15 at 09:33, Igor Pechtchanski wrote: > > Rob, > > > Your operator > and < appear to have a problem. > > > > > > foo: bar > > > gam: bar > > > > > > foo > gam = false > > > gam < foo = false > > > gam == foo = false. > > > > > > I'd expect stl associative containers to choke on that. > > > Not really. I read up on that specifically. stl containers only need a > > *partial* order. What you're suggesting will create a total order. Not > > an error, but overkill. The sort function is supposed to be stable and > > keep the original order if the lessThan relation is undefined. See > > <http://www.sgi.com/tech/stl/LessThanComparable.html> And for clarity: my suggested tweak is also not sufficient to provide a weak ordering. Rob -- Robert Collins <rbcollins at cygwin dot com>
Attachment:
signature.asc
Description: This is a digitally signed message part
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |