reinterpret_cast examples?

Started by
39 comments, last by Brother Bob 10 years, 11 months ago

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.

This topic is closed to new replies.

Advertisement