|
-
Mar 23rd, 2002, 06:03 PM
#1
Thread Starter
Hyperactive Member
reinterpret_cast <>
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
Amon Ra
The Power of Learning.
-
Mar 24th, 2002, 07:03 AM
#2
Monday Morning Lunatic
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...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 24th, 2002, 12:22 PM
#3
Thread Starter
Hyperactive Member
ok, cool.. i'll use the new ones then ..thanks Parksie
Amon Ra
The Power of Learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|