Boost logo

Boost Users :

Subject: Re: [Boost-users] Overloading operators with multi index container?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-04-28 14:48:35


> This ought to work, under the assumption that equality is determined by
> checking that (lhs < rhs) is false and (rhs < lhs) is false.  This doesn’t
> seem to be working correctly though.  If we add some logging inside the
> operator overload, we see that it only gets called once, not twice, when we
> call find() on that keyed index.
>
> What is the logic behind find()?

I don't know the aswer to your question, but it might be worth trying
to overload some other comparaison operators as well.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net