vendredi 28 août 2020

reinterpret_cast - A value of any integral or enumeration type can be converted to a pointer type

https://en.cppreference.com/w/cpp/language/reinterpret_cast

A value of any integral or enumeration type can be converted to a pointer type.

They are not talking about structs and classes here, so they are not included?

They also mean that if I have an object of an enum like MyEnum obj; then obj can be converted to MyEnum *obj;?

Aucun commentaire:

Enregistrer un commentaire