pointer-to-base to pointer-to-derived
- 5. Implementations
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
Only if absolutely sure that the downcast is correct. This is a hard guarantee to fulfill in a long-lived codebase, so use judiciously.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2500720/