T
tushar.kale24
Hi all,
Why re-interpret cast should not be used in practise?
Regards
Why re-interpret cast should not be used in practise?
Regards
Hi all,
Why re-interpret cast should not be used in practise?
Stuart said:Where does it say so?
There are many cases where reinterpret_cast is the only chance to get
what you want. Your statement should better be re-phrased to:
If you have to use casts, try to use dynamic_cast, static_cast or
const_cast; reinterpret_cast should be your last resort.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.