From: David Abrahams (dave_at_[hidden])
Date: 2006-07-19 07:50:11
"Kevin Spinar" <spinarkm_at_[hidden]> writes:
> 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).
Yeah, but you don't need them in the current scope; you need them in
the scope of some generic algorithm you'll pass instances of the
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk