Skip to content

Commit 0ad3281

Browse files
author
Dawn Perchik
committed
[diff] Be consistent in formatting and add introductions to examples.
1 parent db30e9c commit 0ad3281

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

source/compatibility.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@
873873
this International Standard. Specifically, macros named \tcode{R}, \tcode{u8},
874874
\tcode{u8R}, \tcode{u}, \tcode{uR}, \tcode{U}, \tcode{UR}, or \tcode{LR} will
875875
not be expanded when adjacent to a string literal but will be interpreted as
876-
part of the string literal. For example,
876+
part of the string literal. For example:
877877

878878
\begin{codeblock}
879879
#define u8 "abc"
@@ -885,7 +885,7 @@
885885
\rationale Required for new features.
886886
\effect
887887
Valid \CppIII{} code may fail to compile or produce different results in
888-
this International Standard, as the following example illustrates.
888+
this International Standard, as the following example illustrates:
889889

890890
\begin{codeblock}
891891
#define _x "there"
@@ -1467,6 +1467,7 @@
14671467
by aggregate initialization.
14681468
\effect
14691469
Valid \CppXI{} code may fail to compile or may change meaning in this International Standard.
1470+
For example:
14701471
\begin{codeblock}
14711472
struct S { // Aggregate in \CppXIV{} onwards.
14721473
int m = 1;
@@ -1530,6 +1531,7 @@
15301531
this International Standard. Specifically, character sequences like \tcode{0p+0}
15311532
and \tcode{0e1_p+0} are three separate tokens each in \CppXIV{}, but one single token
15321533
in this International Standard.
1534+
For example:
15331535

15341536
\begin{codeblock}
15351537
#define F(a) b ## a
@@ -1588,7 +1590,8 @@
15881590
\rationale Improve type-safety.
15891591
\effect
15901592
Valid \CppXIV{} code may fail to compile or change meaning in this
1591-
International Standard:
1593+
International Standard.
1594+
For example:
15921595

15931596
\begin{codeblock}
15941597
void g1() noexcept;
@@ -1605,7 +1608,8 @@
16051608
Valid \CppXIV{} code may fail to compile or produce different results in this
16061609
International Standard; initialization from an empty initializer list will
16071610
perform aggregate initialization instead of invoking a default constructor
1608-
for the affected types:
1611+
for the affected types.
1612+
For example:
16091613
\begin{codeblock}
16101614
struct derived;
16111615
struct base {
@@ -1655,7 +1659,8 @@
16551659
allows partial specializations to decompose
16561660
from the type deduced for the non-type template argument.
16571661
\effect Valid \CppXIV{} code may fail to compile
1658-
or produce different results in this International Standard:
1662+
or produce different results in this International Standard.
1663+
For example:
16591664
\begin{codeblock}
16601665
template <int N> struct A;
16611666
template <typename T, T N> int foo(A<N> *) = delete;

0 commit comments

Comments
 (0)