This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16468] [DR460] using-declaration of namespace name
- From: "gdr at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2004 21:24:59 -0000
- Subject: [Bug c++/16468] [DR460] using-declaration of namespace name
- References: <20040710210406.16468.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at acm dot org 2004-07-12 21:24 -------
Subject: Re: [DR460] using-declaration of namespace name
bangerth at dealii dot org
>
> ------- Additional Comments From bangerth at dealii dot org 2004-07-12
> 18:52 -------
> Possibly nothing, though it seems (from the DR) as if the makers
> of the standard intended the using declaration for names of classes,
> functions, variables, etc. For namespaces why not use the using
> directive
> using namespace namespace-name;
> which seems to be the more obvious choice anyway?
because
(1) it is arbitrary restriction
(2) it has a *very* very different meaning. It modifies
name lookup -- the original poster did NOT intend to dump
everything in the current scope.
I'm amazed at seeing the proposed resolution. I suppose
I have to raise that at the next meeting.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16468