JTC1/SC22/WG21
N2542
Reserved namespaces for POSIX
Document Number: N2542=08-0052
Date: 2008-02-27
Author: Benjamin Kosnik <bkoz@redhat.com>
Introduction.
The POSIX liasion report to the LWG at the Bellevue meeting requested
the reservation of possible namespaces for future standardization
work. Two namespaces were mentioned as candidates: std::posix and ::posix.
The LWG wasn't planning on using either of these namepaces, so this
was not contraversial, but it was suggested to formalize this request
in the working draft.
Proposed Wording.
Append the following to 17.4.3.1 Reserved names [reserved.names]
It is undefined for a C++ program to add declarations or definitions
to namespace std or namespaces within namespace std unless otherwise
specified.
to
It is undefined for a C++ program to add declarations or definitions
to namespace std or namespaces within namespace std unless otherwise
specified. In addition, the std::posix and ::posix namespaces are
specifically reserved for POSIX use: it is similarly undefined to add
declarations or definitions to either of these namespaces unless
otherwise specified.