2 ms·
Really? I've used RTTI a handful of times but to be honest with you aside from debugging I very rarely had a use for them. I think C++ could benefit from more p
by jchw 9y ago
Really? I've used RTTI a handful of times but to be honest with you aside from debugging I very rarely had a use for them. I think C++ could benefit from more powerful reflection, though. Do you have any simple examples of exploiting RTTI to solve problems?
- pjmlp 9y agoYep 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.