From 0ee59f1f053660b31aa296c7450120b6a6c55e0b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 21 Apr 2015 11:27:18 +0100 Subject: [PATCH] abi.xml: Use uppercase for C++ Standard Library. * 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. From-SVN: r222261 --- 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 a82dd923a76..98a6036e5cd 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 ee3a27e09b1..86c591d6ece 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 f6f615e1743..0ce440703dd 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. @@ -51,6 +56,16 @@ As directly above, with GNU extensions. + + -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.30.2