https://en.cppreference.com/w/cpp/language/reinterpret_cast
An expression of integral, enumeration, pointer, or pointer-to-member type can be converted to its own type. The resulting value is the same as the value of expression. (since C++11)
Why should I be interested in converting something to its own type? This reads to me as I would want to convert int to int.
Please correct me.
Aucun commentaire:
Enregistrer un commentaire