This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Namespace 'using' at global scope, recently broken
- To: egcs-bugs at cygnus dot com, jstern at citilink dot com, martin at mira dot isdn dot cs dot tu-berlin dot de
- Subject: Re: Namespace 'using' at global scope, recently broken
- From: Josh Stern <jstern at citilink dot com>
- Date: Thu, 27 Aug 1998 11:40:51 -0500 (CDT)
- Posted-Date: Thu, 27 Aug 1998 11:40:51 -0500 (CDT)
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