Commit 0ee59f1f by Jonathan Wakely Committed by Jonathan Wakely

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
parent 8f252203
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> 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/concurrency_extensions.xml: Update documentation * doc/xml/manual/concurrency_extensions.xml: Update documentation
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</para> </para>
<para> Putting all of these ideas together results in the C++ Standard <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: given compiler ABI. In a nutshell:
</para> </para>
......
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
</para> </para>
<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> </para>
<table frame="all" xml:id="table.cmd_options"> <table frame="all" xml:id="table.cmd_options">
...@@ -32,12 +35,14 @@ ...@@ -32,12 +35,14 @@
<tbody> <tbody>
<row> <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> <entry>Use the 1998 ISO C++ standard plus amendments.</entry>
</row> </row>
<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> <entry>As directly above, with GNU extensions.</entry>
</row> </row>
...@@ -52,6 +57,16 @@ ...@@ -52,6 +57,16 @@
</row> </row>
<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><literal>-fexceptions</literal></entry>
<entry>See <link linkend="intro.using.exception.no">exception-free dialect</link></entry> <entry>See <link linkend="intro.using.exception.no">exception-free dialect</link></entry>
</row> </row>
...@@ -923,8 +938,8 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe ...@@ -923,8 +938,8 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe
<listitem><para>std</para> <listitem><para>std</para>
<para>The ISO C++ standards specify that "all library entities are defined <para>The ISO C++ standards specify that "all library entities are defined
within namespace std." This includes namespaces nested within namespace std." This includes namespaces nested
within <code>namespace std</code>, such as <code>namespace within namespace <code>std</code>, such as namespace
std::tr1</code>. <code>std::chrono</code>.
</para> </para>
</listitem> </listitem>
<listitem><para>abi</para> <listitem><para>abi</para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment