Skip to content

Commit fc24034

Browse files
authored
[tuple.elem] Canonicalize comments in example. (#3161)
1 parent 600f1c0 commit fc24034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/utilities.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,9 +1901,9 @@
19011901
\begin{example}
19021902
\begin{codeblock}
19031903
const tuple<int, const int, double, double> t(1, 2, 3.4, 5.6);
1904-
const int& i1 = get<int>(t); // OK. Not ambiguous. \tcode{i1 == 1}
1905-
const int& i2 = get<const int>(t); // OK. Not ambiguous. \tcode{i2 == 2}
1906-
const double& d = get<double>(t); // ERROR. ill-formed
1904+
const int& i1 = get<int>(t); // OK, \tcode{i1} has value \tcode{1}
1905+
const int& i2 = get<const int>(t); // OK, \tcode{i2} has value \tcode{2}
1906+
const double& d = get<double>(t); // error: type \tcode{double} is not unique within \tcode{t}
19071907
\end{codeblock}
19081908
\end{example}
19091909
\end{itemdescr}

0 commit comments

Comments
 (0)