Skip to content

Commit 393c299

Browse files
committed
CWG2985 Unclear rules for reference initialization with conversion
1 parent 21ea4d8 commit 393c299

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/declarations.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6192,9 +6192,10 @@
61926192
``\cvqual{cv1} \tcode{T1}'' by
61936193
user-defined conversion\iref{dcl.init,over.match.copy,over.match.conv};
61946194
the program is ill-formed if the corresponding non-reference
6195-
copy-initialization would be ill-formed. The result of the call to the
6195+
copy-initialization would be ill-formed. The result $E$ of the call to the
61966196
conversion function, as described for the non-reference
6197-
copy-initialization, is then used to direct-initialize the reference.
6197+
copy-initialization, is then used to direct-initialize the reference
6198+
using the form \tcode{($E$)}.
61986199
For this direct-initialization, user-defined conversions are not considered.
61996200
\item
62006201
Otherwise,

0 commit comments

Comments
 (0)