Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-23 19:15:34


Jens Maurer wrote:
>
> John Max Skaller wrote:
>
> > class X {
> > friend void nf() {}
> > void method();
> > };
>
> > void X::method() { nf(); } // found
>
> This appears to be incorrect. nf() is not found, because
> it does not have any arguments, and thus Koenig lookup does
> not apply, therefore "nf" is looked up using ordinary
> lookup only. And that does not find nf(), because it's
> not (visibly) declared yet.

        Point taken.
 
> > When you start using templates all hell breaks loose.
>
> I tend to disagree.

        I already posted such an example here,
where in a simple pair of mutually linked data structures,
the link pointers are replaced by a smart pointer, this
breaks g++ 2.95.3. That's hell for me, since while I
expect this trivial usage will work on EDG, I don't
have a library for it.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk