is it a good thing to use it? or is it better to use the (TYPE) x way?
cuz i saw some ppl use the reinterpret_cast and others dopnt use it.. what advice would you guys give about this?
thanks
Printable View
is it a good thing to use it? or is it better to use the (TYPE) x way?
cuz i saw some ppl use the reinterpret_cast and others dopnt use it.. what advice would you guys give about this?
thanks
Using the C-style casts shouldn't be done in new C++ programs, it makes much more sense to whoever's reading the code that you do actually want to force the compiler to do something different.
Note that many compilers will convert (type*) to dynamic_cast<type*> if you give them polymorphic types as arguments. I don't think it's part of the standard though...
ok, cool.. i'll use the new ones then ..thanks Parksie