diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-21 10:27:18 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-21 10:27:18 +0000 |
commit | 4a23cd893a5e196caa4a991911d481be83a4010e (patch) | |
tree | 2d55da3c3a0e86af415235450a84685612329f59 | |
parent | 4ef6d61b359dfc85fd58c8bad09fcb5af7956924 (diff) | |
download | gcc-4a23cd893a5e196caa4a991911d481be83a4010e.tar.gz |
* 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
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/doc/xml/manual/abi.xml | 2 | ||||
-rw-r--r-- | 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 <jwakely@redhat.com> + + * 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 <jwakely@redhat.com> * 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 @@ </para> <para> 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: </para> 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 @@ </para> <para> - By default, <command>g++</command> is equivalent to <command>g++ -std=gnu++98</command>. The standard library also defaults to this dialect. + The standard library conforms to the dialect of C++ specified by the + <option>-std</option> option passed to the compiler. + By default, <command>g++</command> is equivalent to + <command>g++ -std=gnu++98</command>. </para> <table frame="all" xml:id="table.cmd_options"> @@ -32,12 +35,14 @@ <tbody> <row> - <entry><literal>-std=c++98</literal></entry> + <entry><literal>-std=c++98</literal> or <literal>-std=c++03</literal> + </entry> <entry>Use the 1998 ISO C++ standard plus amendments.</entry> </row> <row> - <entry><literal>-std=gnu++98</literal></entry> + <entry><literal>-std=gnu++98</literal> or <literal>-std=gnu++03</literal> + </entry> <entry>As directly above, with GNU extensions.</entry> </row> @@ -52,6 +57,16 @@ </row> <row> + <entry><literal>-std=c++14</literal></entry> + <entry>Use the 2014 ISO C++ standard.</entry> + </row> + + <row> + <entry><literal>-std=gnu++14</literal></entry> + <entry>As directly above, with GNU extensions.</entry> + </row> + + <row> <entry><literal>-fexceptions</literal></entry> <entry>See <link linkend="intro.using.exception.no">exception-free dialect</link></entry> </row> @@ -923,8 +938,8 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe <listitem><para>std</para> <para>The ISO C++ standards specify that "all library entities are defined within namespace std." This includes namespaces nested -within <code>namespace std</code>, such as <code>namespace -std::tr1</code>. +within namespace <code>std</code>, such as namespace +<code>std::chrono</code>. </para> </listitem> <listitem><para>abi</para> |