|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-09-16 09:53:36
Daniel James <daniel_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk