|
-
March 24th, 2003, 03:11 AM
#1
Query on Static Cast
Hi folks,
I got a simple doubt. What are the pros and cons of using c style casting in c++ and vc++. I need to know the difference between
ptr = (class*) (expression) and
ptr = static_cast<class*> (expression).
At what risk could I use ptr = (class*) (expression) in c++ or vc++.
ciao
Life is short, enjoy it with a smile as long as it lasts.
User error. Replace User and press any key when ready. - Anonymous
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
|