Skip to content

Commit 66f99b5

Browse files
committed
P2738R1 constexpr cast from void*: towards constexpr type-erasure
1 parent c0685a5 commit 66f99b5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

source/expressions.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7451,7 +7451,10 @@
74517451
\end{note}
74527452

74537453
\item
7454-
a conversion from type \cv{}~\tcode{\keyword{void}*} to a pointer-to-object type;
7454+
a conversion
7455+
from a prvalue \tcode{P} of type ``pointer to \cv{}~\tcode{\keyword{void}}''
7456+
to a pointer-to-object type \tcode{T}
7457+
unless \tcode{P} points to an object whose type is similar to \tcode{T};
74557458

74567459
\item
74577460
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};

source/preprocessor.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@
18141814
\defnxname{cpp_char8_t} & \tcode{202207L} \\ \rowsep
18151815
\defnxname{cpp_concepts} & \tcode{202002L} \\ \rowsep
18161816
\defnxname{cpp_conditional_explicit} & \tcode{201806L} \\ \rowsep
1817-
\defnxname{cpp_constexpr} & \tcode{202211L} \\ \rowsep
1817+
\defnxname{cpp_constexpr} & \tcode{202306L} \\ \rowsep
18181818
\defnxname{cpp_constexpr_dynamic_alloc} & \tcode{201907L} \\ \rowsep
18191819
\defnxname{cpp_constexpr_in_decltype} & \tcode{201711L} \\ \rowsep
18201820
\defnxname{cpp_consteval} & \tcode{202211L} \\ \rowsep

0 commit comments

Comments
 (0)