
23 Jul
2006
23 Jul
'06
3:48 p.m.
David Abrahams schrieb:
Christopher Eltschka <celtschk@web.de> writes:
David Abrahams schrieb:
Christopher Eltschka <celtschk@web.de> writes:
Hi,
I have a very simple header to simplify use of std::rel_ops with user defined classes std::rel_ops is absolutely useless.
Why?
Because ADL will never find the operators for any type.
Did you read my header, enclosed with my original mail, together with my explanation? And if so, could you please tell me what's wrong with it? Because IMHO it achieves exactly what you just claimed to be impossible. It apparently works quite well with g++ (gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)), and I don't see why it shouldn't.