[PATCH] Postinstall script ordering in setup - take 3

Robert Collins rbcollins@cygwin.com
Sat Mar 15 21:57:00 GMT 2003


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@cygwin.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20030315/2fdac501/attachment.sig>


More information about the Cygwin-apps mailing list