Skip to content

Commit 0773d07

Browse files
tkoeppezygoloid
authored andcommitted
CWG2321 Conditional operator and cv-qualified class prvalues
1 parent 8732b6f commit 0773d07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/expressions.tex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5431,10 +5431,14 @@
54315431

54325432
\begin{itemize}
54335433
\item if \tcode{T1} and \tcode{T2} are the same class type
5434-
(ignoring cv-qualification), or one is a base class of the other, and
5434+
(ignoring cv-qualification) and
54355435
\tcode{T2} is at least as cv-qualified as \tcode{T1},
54365436
the target type is \tcode{T2},
54375437

5438+
\item otherwise, if \tcode{T2} is a base class of \tcode{T1},
5439+
the target type is \cvqual{cv1} \tcode{T2}, where \cvqual{cv1}
5440+
denotes the cv-qualifiers of \tcode{T1},
5441+
54385442
\item otherwise, the target type is the type that \tcode{E2} would have
54395443
after applying the
54405444
lvalue-to-rvalue\iref{conv.lval},

0 commit comments

Comments
 (0)