[cfe-dev] using declaration questions
Eli Friedman
eli.friedman at gmail.com
Wed Jun 17 19:02:21 PDT 2009
On Wed, Jun 17, 2009 at 6:55 PM, John
Thompson<john.thompson.jtsoftware at gmail.com> wrote:
>> Oh, and we might even consider storing the list of declarations that the
>> using declaration refers to, because we need to model the semantics of
>> paragraph 11:
>>
>> The entity declared by a using-declaration shall be known in the
>> context using it according to its definition
>> at the point of the using-declaration . Definitions added to the namespace
>> after the using-declaration are not
>> considered when a use of the name is made.
>
> I'm not sure what list of declarations is needed. If later definitions
> appear, it seems that a look up will find the using declaration first, and
> return the refered-to declaration. Or does this have something to do with
> overloading?
Overloading is precisely the issue: a using declaration can refer to
multiple declarations.
-Eli
More information about the cfe-dev
mailing list