
28 Apr
2010
28 Apr
'10
6:48 p.m.
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.