Skip to content

Commit 1cd876e

Browse files
committed
[expr] Minor whitespace tweaks
1 parent 8c8b4a2 commit 1cd876e

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

source/expressions.tex

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,8 +2059,7 @@
20592059
void h() {
20602060
F f;
20612061
A* ap = &f; // succeeds: finds unique \tcode{A}
2062-
D* dp = dynamic_cast<D*>(ap); // fails: yields \tcode{0}
2063-
// \tcode{f} has two \tcode{D} subobjects
2062+
D* dp = dynamic_cast<D*>(ap); // fails: yields null; \tcode{f} has two \tcode{D} subobjects
20642063
E* ep = (E*)ap; // ill-formed: cast from virtual base
20652064
E* ep1 = dynamic_cast<E*>(ap); // succeeds
20662065
}
@@ -2571,8 +2570,8 @@
25712570
typedef const int *const CA[3]; // array of 3 const pointer to \tcode{const int}
25722571

25732572
CA &&r = A{}; // OK, reference binds to temporary array object after qualification conversion to type \tcode{CA}
2574-
A &&r1 = const_cast<A>(CA{}); // error: temporary array decayed to pointer
2575-
A &&r2 = const_cast<A&&>(CA{}); // OK
2573+
A &&r1 = const_cast<A>(CA{}); // error: temporary array decayed to pointer
2574+
A &&r2 = const_cast<A&&>(CA{}); // OK
25762575
\end{codeblock}
25772576
\end{example}
25782577

@@ -2953,7 +2952,7 @@
29532952
\indexlibrary{\idxcode{size_t}}%
29542953
\tcode{std::size_t} is defined in the standard header
29552954
\indextext{\idxhdr{cstddef}}%
2956-
\tcode{<cstddef>}~(\ref{support.types}).
2955+
\tcode{<cstddef>}~(\ref{cstddef.syn}, \ref{support.types.layout}).
29572956
\end{note}
29582957

29592958
\rSec2[expr.new]{New}
@@ -4674,8 +4673,7 @@
46744673
// ...
46754674
} catch (...) { // catch all exceptions
46764675
// respond (partially) to exception
4677-
throw; // pass the exception to some
4678-
// other handler
4676+
throw; // pass the exception to some other handler
46794677
}
46804678
\end{codeblock}
46814679
\end{example}
@@ -4789,18 +4787,16 @@
47894787

47904788
\pnum
47914789
A \grammarterm{braced-init-list} may appear on the right-hand side of
4792-
47934790
\begin{itemize}
47944791
\item an assignment to a scalar, in which case the initializer list shall have
4795-
at most a single element. The meaning of \tcode{x=\{v\}}, where \tcode{T} is the
4796-
scalar type of the expression \tcode{x}, is that of \tcode{x=T\{v\}}. The meaning of
4797-
\tcode{x=\{\}} is \tcode{x=T\{\}}.
4792+
at most a single element. The meaning of \tcode{x = \{v\}}, where \tcode{T} is the
4793+
scalar type of the expression \tcode{x}, is that of \tcode{x = T\{v\}}. The meaning of
4794+
\tcode{x = \{\}} is \tcode{x = T\{\}}.
47984795

47994796
\item an assignment to an object of class type, in which case the initializer
48004797
list is passed as the argument to the assignment operator function selected by
48014798
overload resolution~(\ref{over.ass}, \ref{over.match}).
48024799
\end{itemize}
4803-
48044800
\begin{example}
48054801
\begin{codeblock}
48064802
complex<double> z;

0 commit comments

Comments
 (0)