Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-11-12 20:43:02

> Dave Abrahams mentioned his operators.h library.
> I believe that library provides a class template that implements operator !=
> for a subclass based on the operator == in that subclass, using the
> "curiously-recurring" template pattern.
> This only works for member function versions of operator ==.
> But I haven't seen operators.h, I don't think.

It's not really a good argument, since it wont work with the forms that
compare arbitrary shared_ptr<Base,Derived> pairs.

Go with the global function.


Boost list run by bdawes at, gregod at, cpdaniel at, john at