
Daniel James <daniel@calamity.org.uk> writes:
Peder Holt wrote:
On Wed, 15 Sep 2004 09:14:02 -0400, David Abrahams
Definitely not. But I'm not sure which parts of the ADL rules you're interested in here. I am not familiar with the full set of ADL rules, so I'll examplify instead.
I don't think it's the ADL rules that matter. It's whether the compiler adds friend methods to the namespace containing the class. This appears to be nonstandard but done by most compilers.
Strictly speaking, in a conforming compiler they are added to the namespace but can only be found by ADL unless there's an additional out-of-class declaration (which, of course, can't be made to work automatically by templatizing it). -- Dave Abrahams Boost Consulting http://www.boost-consulting.com