Titan,
There are no errors here. The job of dynamic_cast is to return NULL when it identifies an object is not the target type.
Run-time type information (rtti) is hierarchy and class name information available for analysis at runtime. With rtti enabled, you can ask an otherwise lost pointer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.