
15 Sep
2004
15 Sep
'04
10:42 a.m.
David Abrahams wrote:
Daniel James <daniel@calamity.org.uk> writes:
but it still doesn't work in strict mode. I guess because it relies on an implicit cast from int to the type, but I'm not sure. I don't fully understand why the operators library works and this doesn't.
Because those friend functions can only be found via ADL, and naturally ADL doesn't look in the namespaces of classes to which the arguments can be implicitly converted.
Well that's embarassingly simple. Thanks for that.