This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Namespace Lookup
- To: egcs at cygnus dot com
- Subject: Re: Namespace Lookup
- From: "Lassi A. Tuura" <lat at iki dot fi>
- Date: Wed, 11 Mar 1998 11:45:26 +0100 (MET)
- Reply-To: "Lassi A. Tuura" <Lassi dot Tuura at cern dot ch>
Martin von Loewis wrote:
|> What about
|> struct Foo{ int bar; };
|> void bar(Foo&);
|> void foobar() { /* ... */ }
There are no namespaces involved in this example, nor in your other
example, so the Koenig rules do not kick in. This are resolved using
the normal unqualified name lookup rules as far as I understand the
standard (but I only have the Dec'96 draft so things may have changed).
//lat
--
Every old idea will be proposed again with a different name and a
different presentation, regardless of whether it works. --RFC1925