Skip to content

Commit 7c6153d

Browse files
hubert-reinterpretcastzygoloid
authored andcommitted
[expr.reinterpret.cast]: requirement redundant with static_cast: a note it is (cplusplus#996)
1 parent d04d807 commit 7c6153d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/expressions.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,11 +2454,13 @@
24542454
When a prvalue \tcode{v} of object pointer type is converted to
24552455
the object pointer type ``pointer to \cv\ \tcode{T}'', the result is \tcode{static_cast<\cv\ T*>(static_cast<\cv\
24562456
void*>(v))}.
2457+
\begin{note}
24572458
Converting a prvalue of type ``pointer to \tcode{T1}'' to
24582459
the type ``pointer to \tcode{T2}'' (where \tcode{T1} and \tcode{T2} are
24592460
object types and where the alignment requirements of \tcode{T2} are no
24602461
stricter than those of \tcode{T1}) and back to its original type yields
24612462
the original pointer value.
2463+
\end{note}
24622464

24632465
\pnum
24642466
Converting a function pointer to an object pointer

0 commit comments

Comments
 (0)