[Bug c++/16468] [DR460] using-declaration of namespace name
gdr at acm dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 12 21:25:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list