Invalid base-to-derived static_cast

suggest change

If static_cast is used to convert a pointer (resp. reference) to base class to a pointer (resp. reference) to derived class, but the operand does not point (resp. refer) to an object of the derived class type, the behavior is undefined. See Base to derived conversion.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents