
19 Jul
2006
19 Jul
'06
11:50 a.m.
"Kevin Spinar" <spinarkm@gmail.com> writes:
On 7/17/06, David Abrahams <dave@boost-consulting.com> wrote:
Christopher Eltschka <celtschk@web.de> writes:
David Abrahams schrieb:
Christopher Eltschka <celtschk@web.de> 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 classes to. -- Dave Abrahams Boost Consulting www.boost-consulting.com