Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by alharitek

  1. alharitek

    Overloading cast operator with pointers

    I am researching the same problem. I would like to be able to say: class2 *ptr2 = (class2*)ptr1; rather than: class2 *ptr2 = dynamic_cast<class2*>(ptr1); and override it with both the dynamic cast and the assert. However, I can not find a way to override an explicint (or implicit)...

Part and Inventory Search