Topic: namespace aliases ...
Author: Martin von Loewis <loewis@informatik.hu-berlin.de>
Date: 1999/02/13 Raw View
"Piet Van Vlierberghe" <pieter.vanvlierberghe@lms.be> writes:
> Is the following code correct:
>
> namespace N {
> }
>
> namespace Alias =3D N;
>
> namespace Alias {
> }
No. [namespace.def]/3 from the C++ standard says
>> The original=ADnamespace=ADname in an extension=ADnamespace=ADdefinition
>> shall have previously been defined in an
>> original=ADnamespace=ADdefinition in the same declarative region.
This explicitly excludes namespace aliases.
Regards,
Martin
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]