P
puzzlecracker
What about dynamic_cast when dynamic reference is not unique (e.g. A-
Why would you use dynamic cast<void *>?
What is typeid & what does it return? How would you use it?
What is wrong here
void *pVoid = new C(); C *pC = dynamic_cast<C *> (pVoid);
B, B->C, B->D, is dynamic_cast<B *> correct for pointer to D?
Why would you use dynamic cast<void *>?
What is typeid & what does it return? How would you use it?
What is wrong here
void *pVoid = new C(); C *pC = dynamic_cast<C *> (pVoid);