Skip to content

Commit 1a9fd49

Browse files
jensmaurerzygoloid
authored andcommitted
[expr.dynamic.cast] Remove redundant statements on casting away constness
1 parent 40803a0 commit 1a9fd49

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/expressions.tex

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,9 +2671,8 @@
26712671
result is an xvalue of the type referred to by \tcode{T}.
26722672

26732673
\pnum
2674-
If the type of \tcode{v} is the same as \tcode{T}, or it is
2675-
the same as \tcode{T} except that the class object type in \tcode{T} is
2676-
more cv-qualified than the class object type in \tcode{v}, the result is
2674+
If the type of \tcode{v} is the same as \tcode{T} (ignoring cv-qualifications),
2675+
the result is
26772676
\tcode{v} (converted if necessary).
26782677

26792678
\pnum
@@ -2693,8 +2692,7 @@
26932692
\tcode{v} can contain other \tcode{B} objects as base classes, but these
26942693
are ignored.}
26952694
In both the pointer and
2696-
reference cases, the program is ill-formed if \cvqual{cv2} has greater
2697-
cv-qualification than \cvqual{cv1} or if \tcode{B} is an inaccessible or
2695+
reference cases, the program is ill-formed if \tcode{B} is an inaccessible or
26982696
ambiguous base class of \tcode{D}.
26992697
\begin{example}
27002698

0 commit comments

Comments
 (0)