Boost logo

Boost :

From: Kevin Spinar (spinarkm_at_[hidden])
Date: 2006-07-18 21:07:20


On 7/17/06, David Abrahams <dave_at_[hidden]> wrote:
> Christopher Eltschka <celtschk_at_[hidden]> writes:
>
> > David Abrahams schrieb:
> >> Christopher Eltschka <celtschk_at_[hidden]> writes:
> >>
> >> std::rel_ops is absolutely useless.
> >>
> >
> > Why?
>
> Because ADL will never find the operators for any type.

The idea is that you use 'using namespace std::rel_ops;' but then
you're giving operator!=, >, <=, and >= to all classes in scope
(which, arguably, is not as bad thing).

Kevin Spinar


Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk