From 4a23cd893a5e196caa4a991911d481be83a4010e Mon Sep 17 00:00:00 2001 From: redi Date: Tue, 21 Apr 2015 10:27:18 +0000 Subject: [PATCH] * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library. * doc/xml/manual/using.xml: Document newer -std options. Use better examples of nested namespaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222261 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/doc/xml/manual/abi.xml | 2 +- libstdc++-v3/doc/xml/manual/using.xml | 25 ++++++++++++++++++++----- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a82dd92..98a6036 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-04-21 Jonathan Wakely + + * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library. + * doc/xml/manual/using.xml: Document newer -std options. Use better + examples of nested namespaces. + 2015-04-20 Jonathan Wakely * doc/xml/manual/concurrency_extensions.xml: Update documentation diff --git a/libstdc++-v3/doc/xml/manual/abi.xml b/libstdc++-v3/doc/xml/manual/abi.xml index ee3a27e..86c591d 100644 --- a/libstdc++-v3/doc/xml/manual/abi.xml +++ b/libstdc++-v3/doc/xml/manual/abi.xml @@ -66,7 +66,7 @@ Putting all of these ideas together results in the C++ Standard -library ABI, which is the compilation of a given library API by a +Library ABI, which is the compilation of a given library API by a given compiler ABI. In a nutshell: diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml index f6f615e..0ce4407 100644 --- a/libstdc++-v3/doc/xml/manual/using.xml +++ b/libstdc++-v3/doc/xml/manual/using.xml @@ -13,7 +13,10 @@ - By default, g++ is equivalent to g++ -std=gnu++98. The standard library also defaults to this dialect. + The standard library conforms to the dialect of C++ specified by the + option passed to the compiler. + By default, g++ is equivalent to + g++ -std=gnu++98. @@ -32,12 +35,14 @@ - -std=c++98 + -std=c++98 or -std=c++03 + Use the 1998 ISO C++ standard plus amendments. - -std=gnu++98 + -std=gnu++98 or -std=gnu++03 + As directly above, with GNU extensions. @@ -52,6 +57,16 @@ + -std=c++14 + Use the 2014 ISO C++ standard. + + + + -std=gnu++14 + As directly above, with GNU extensions. + + + -fexceptions See exception-free dialect @@ -923,8 +938,8 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe std The ISO C++ standards specify that "all library entities are defined within namespace std." This includes namespaces nested -within namespace std, such as namespace -std::tr1. +within namespace std, such as namespace +std::chrono. abi -- 2.7.4