Hacker News new | past | comments | ask | show | jobs | submit login

Yep dynamic_cast is not guaranteed to compile with RTTI disabled.

Doing static_cast instead, will open the door to fun surprises if one cannot guaranttee the safety of the pointers given to the library code.

I must add that in those days, we were making use of C++ gui libraries like OWL, followed by VCL and MFC.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: