This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using declarations


Martin von Loewis writes:

> I'm still not certain about the exact semantics of using declarations.

> The redeclaration of 'using A::f;' is certainly
> correct, however, the selected set of declarations should be the one
> found at the first declaration.

In my interpretation, a using declaration brings the current
definition of the specified name into the current namespace,
therefore, the redeclaration would bring the declarations of both
A::f(char) and A::f(int) into the global namespace.

But you're right, this is not explicitly stated in (my non-final copy
of) the Standard.  Time for one more question in comp.std.c++

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]