This is the mail archive of the gcc-bugs@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: Namespace 'using' at global scope, recently broken


To: martin@mira.isdn.cs.tu-berlin.de, jstern@citilink.com
Subject: Re: Namespace 'using' at global scope, recently broken


>>   A using-directive does not add any members to the declarative 
>>   region in which it appears."
>> 
>> I interpret that last sentence to be at odds with your explanation,

>Well, it isn't. Your example contained a *using-declaration*, whereas
>this text is about *using-directives*.

My example contained both.  They were next to each other and
each was tried, with the other commented out, like this:

//using namespace Some;  // doesn't work
using Some::Display;  // doesn't work


I agree with your remarks pertaining to "using Some::Display",
but how about "using namespace Some"?   That is, of course,
a using directive.


- Josh




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