dereferencing a pointer to a pointer
Ok so lets say you have a base class called Object.
you also have another class that derives from class Object called subObject
you lastly have a pointer to a void called pVoid, which i think you could make by doing this: now if you had:
Code:
Object* pObject = new subObject;
and did this:
Code:
pVoid = dynamic_cast<(pObject*)>(pVoid);
would pVoid be a pointer to the new subObject, in the sense that you could do:
Code:
pVoid->(memberfunction of subObject)();
NOTE: both classes are normal, not virtual