Skip to content

Commit 90a29c0

Browse files
committed
[conv.qual] Avoid bouncing back and forth between subscripts and regular
scripts for T1 and T2, and add missing definition for cv^j_i and P^j_i.
1 parent fce4ac9 commit 90a29c0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/expressions.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@
730730

731731
\pnum
732732
\indextext{type!similar|see{similar types}}%
733-
Two types $\tcode{T}_1$ and $\tcode{T}_2$ are \defnx{similar}{similar types} if
733+
Two types \tcode{T1} and \tcode{T2} are \defnx{similar}{similar types} if
734734
they have cv-decompositions with the same $n$
735735
such that corresponding $P_i$ components are either the same
736736
or one is ``array of $N_i$'' and the other is ``array of unknown bound of'',
@@ -752,9 +752,11 @@
752752
or the resulting $P^3_i$ is different from $P^1_i$ or $P^2_i$,
753753
then \tcode{const} is added to every $\cv{}^3_k$ for $0 < k < i$.
754754
\end{itemize}
755-
A prvalue of type $\tcode{T}_1$
756-
can be converted to type $\tcode{T}_2$
757-
if the cv-combined type of $\tcode{T}_1$ and $\tcode{T}_2$ is $\tcode{T}_2$.
755+
where $\cv{}^j_i$ and $P^j_i$ are the components of
756+
the cv-decomposition of $\tcode{T}j$.
757+
A prvalue of type \tcode{T1}
758+
can be converted to type \tcode{T2}
759+
if the cv-combined type of \tcode{T1} and \tcode{T2} is \tcode{T2}.
758760
\begin{note}
759761
If a program could assign a pointer of type \tcode{T**} to a pointer of
760762
type \tcode{const} \tcode{T**} (that is, if line \#1 below were

0 commit comments

Comments
 (0)