I have been working on some wording to change the following things with reinterpret_cast:
- allow casting to char*, unsigned char* and std::byte* to access the object representation of an object, and
- allow casting from char*, unsigned char* and std::byte* to an object pointer type T, where the pointer being casted is a pointer to an array or first element thereof providing storage to an object of type T
These are very common design patterns that are often used, and they currently have undefined behavior. I would like to get a sense of if this would be something that you all would like to see. Please provide any feedback or suggestions 😊