Skip to content

Commit 7d6aca4

Browse files
committed
[expr.cond] Clarify what "subject to the constraint" means.
1 parent 84087b3 commit 7d6aca4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/expressions.tex

+6-4
Original file line numberDiff line numberDiff line change
@@ -6436,13 +6436,15 @@
64366436

64376437
\begin{itemize}
64386438
\item If \tcode{E2} is an lvalue, the target type is
6439-
``lvalue reference to \tcode{T2}'', subject to the
6440-
constraint that in the conversion the reference binds
6441-
directly\iref{dcl.init.ref} to a glvalue.
6439+
``lvalue reference to \tcode{T2}'',
6440+
but an implicit conversion sequence can only be formed
6441+
if the reference would bind directly\iref{dcl.init.ref}
6442+
to a glvalue.
64426443

64436444
\item If \tcode{E2} is an xvalue, the target type is
64446445
``rvalue reference to \tcode{T2}'',
6445-
subject to the constraint that the reference binds directly.
6446+
but an implicit conversion sequence can only be formed
6447+
if the reference would bind directly.
64466448

64476449
\item If \tcode{E2} is a prvalue or if neither of the conversion sequences above can be
64486450
formed and at least one of the operands has (possibly cv-qualified) class type:

0 commit comments

Comments
 (0)