|Project||Programming Language C++|
|Reference||ISO/IEC IS 14882:2003(E)|
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. However, during the Sophia Antipolis meeting, it was believed that there may be issues with regard to std::posix, so it it was suggested to formalize simply the request for ::posix in the working draft.
This subclause describes restrictions on C++ programs that use the facilities of the C++ Standard Library. The following subclauses specify constraints on the program's use of namespaces (18.104.22.168) the namespace std (22.214.171.124), its use of various reserved names (126.96.36.199), its use of headers (188.8.131.52), its use of standard library classes as base classes (184.108.40.206), its definitions of replacement functions (220.127.116.11), and its installation of handler functions during execution (18.104.22.168).Change 22.214.171.124 [namespace.std] as follows:
126.96.36.199 Namespace Use [namespace.constraints]Add the following new subclause to the new 188.8.131.52 [namespace.constraints]:
184.108.40.206.1Namespace std [namespace.std]
The behavior of a C++ program is undefined if it adds declarations or definitions to namespace std or to a namespace within namespace std unless otherwise specified.
220.127.116.11.2 Namespace posix [namespace.posix]
The behavior of a C++ program is undefined if it adds declarations or definitions to namespace posix or to a namespace within namespace posix unless otherwise specified. The namespace posix is reserved for use by ISO/IEC 9945 and other POSIX standards.