Skip to content

Commit 61b6c21

Browse files
committed
[class.expl.init] Fix example to account for guaranteed copy omission.
1 parent 4ec1082 commit 61b6c21

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source/special.tex

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,14 +1534,13 @@
15341534

15351535
complex sqrt(complex,complex);
15361536

1537-
complex a(1); // initialize by a call of \tcode{complex(double)}
1538-
complex b = a; // initialize by a copy of \tcode{a}
1539-
complex c = complex(1,2); // construct \tcode{complex(1,2)} using \tcode{complex(double,double)},
1540-
// copy/move it into \tcode{c}
1541-
complex d = sqrt(b,c); // call \tcode{sqrt(complex,complex)} and copy/move the result into \tcode{d}
1542-
complex e; // initialize by a call of \tcode{complex()}
1543-
complex f = 3; // construct \tcode{complex(3)} using \tcode{complex(double)}, copy/move it into \tcode{f}
1544-
complex g = { 1, 2 }; // initialize by a call of \tcode{complex(double, double)}
1537+
complex a(1); // initialized by calling \tcode{complex(double)} with argument \tcode{1}
1538+
complex b = a; // initialized as a copy of \tcode{a}
1539+
complex c = complex(1,2); // initialized by calling \tcode{complex(double,double)} with arguments \tcode{1} and \tcode{2}
1540+
complex d = sqrt(b,c); // initialized by calling \tcode{sqrt(complex,complex)} with \tcode{d} as its result object
1541+
complex e; // initialized by calling \tcode{complex()}
1542+
complex f = 3; // initialized by calling \tcode{complex(double)} with argument \tcode{3}
1543+
complex g = { 1, 2 }; // initialized by calling \tcode{complex(double, double)} with arguments \tcode{1} and \tcode{2}
15451544
\end{codeblock}
15461545
\end{example}
15471546
\begin{note}

0 commit comments

Comments
 (0)