Title
reinterpret_cast for all types with the same size and alignment
Status
nad
Section
7.6.1.10 [expr.reinterpret.cast]
Submitter
Miller

Created on 2009-07-15.00:00:00 last changed 16 months ago

Messages

Date: 2021-06-15.00:00:00

Rationale (June, 2021):

EWG resolved to close this issue. The bit_cast function addresses some of the use-cases. Supporting other use-cases would need a paper. See vote.

Date: 2015-05-15.00:00:00

Rationale (May, 2015):

CWG agreed that this question should be considered from a language design perspective and is thus being referred to EWG.

Date: 2022-11-20.07:54:16

Additional note, April, 2015:

It has been suggested that this question may more properly be the province of EWG, especially in light of discussions during the resolution of issue 330.

Date: 2009-07-15.00:00:00

During the discussion of issue 799, which specified the result of using reinterpret_cast to convert an operand to its own type, it was observed that it is probably reasonable to allow reinterpret_cast between any two types that have the same size and alignment.

History
Date User Action Args
2022-11-20 07:54:16adminsetmessages: + msg7060
2022-04-28 11:28:07adminsetstatus: extension -> nad
2015-05-25 00:00:00adminsetmessages: + msg5967
2015-05-25 00:00:00adminsetstatus: open -> extension
2015-04-13 00:00:00adminsetmessages: + msg5319
2009-07-15 00:00:00admincreate