Skip to content

Commit 0118297

Browse files
burblebeetkoeppe
authored andcommitted
CWG2648 Correspondence of surrogate call function and conversion function
Fixes NB CA 063 (C++23 CD).
1 parent d7c37a0 commit 0118297

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/overloading.tex

+4-3
Original file line numberDiff line numberDiff line change
@@ -3418,11 +3418,12 @@
34183418
where the \grammarterm{postfix-expression} is of class type,
34193419
the operator function
34203420
is selected by overload resolution\iref{over.call.object}.
3421-
If a surrogate call function for a conversion function
3422-
named \keyword{operator} \grammarterm{conversion-type-id} is selected,
3421+
If a surrogate call function is selected,
3422+
let $e$ be the result of invoking the corresponding conversion operator function on the \grammarterm{postfix-expression};
3423+
34233424
the expression is interpreted as
34243425
\begin{ncsimplebnf}
3425-
postfix-expression \terminal{.} \keyword{operator} conversion-type-id \terminal{(}\terminal{)} \terminal{(} \opt{expression-list} \terminal{)}
3426+
$e$ \terminal{(} \opt{expression-list} \terminal{)}
34263427
\end{ncsimplebnf}
34273428
Otherwise, the expression is interpreted as
34283429
\begin{ncsimplebnf}

0 commit comments

Comments
 (0)