Skip to content

Commit b37a8ce

Browse files
burblebeetkoeppe
authored andcommitted
CWG2830 Top-level cv-qualification should be ignored for list-initialization
1 parent 0e026f5 commit b37a8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/declarations.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -5882,7 +5882,7 @@
58825882
the program is ill-formed.
58835883

58845884
\pnum
5885-
List-initialization of an object or reference of type \tcode{T} is defined as follows:
5885+
List-initialization of an object or reference of type \cvqual{cv} \tcode{T} is defined as follows:
58865886
\begin{itemize}
58875887
\item
58885888
If the \grammarterm{braced-init-list}
@@ -5905,7 +5905,7 @@
59055905
\end{example}
59065906

59075907
\item If \tcode{T} is an aggregate class and the initializer list has a single element
5908-
of type \cvqual{cv} \tcode{U},
5908+
of type \cvqual{cv1} \tcode{U},
59095909
where \tcode{U} is \tcode{T} or a class derived from \tcode{T},
59105910
the object is initialized from that element (by copy-initialization for
59115911
copy-list-initialization, or by direct-initialization for

0 commit comments

Comments
 (0)