N4026: Nested namespace definition -- Robert Kawulak

A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: N4026

Date: 2014-05-23

Nested namespace definition

by Robert Kawulak

Excerpt:

The paper proposes allowing the use of a qualified name in a namespace definition to define several nested namespaces at once, for example:

    namespace A::B::C {
        //...
    }

The code above would be equivalent to:

    namespace A {
        namespace B {
            namespace C {
                //...
            }
        }
    }   


The feature was already proposed by Jon Jagger in 2003 in the paper N1524 Nested Namespace Definition Proposal, but it has been listed in N2869 State of C++ Evolution (Post San Francisco 2008) under “Not ready for C++0x, but open to resubmit in future”.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.