Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


reinterpret_cast examples?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
40 replies to this topic

#41 Brother Bob   Moderators   -  Reputation: 8431

Like
0Likes
Like

Posted 03 May 2013 - 02:22 PM

Yes, you have said that a few times, and so have I. I know that the C-style case will do the right thing when static_cast can do its job. When static_cast is not working, for example you have only forward declared your classes and not fully defined the inheritance tree to the point you want to cast, then reinterpret_cast, and consequently also the C-style cast, will do the wrong thing. I have already stated this earlier in this thread.



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS