|
This is completely a display problem of the compiler. You can take out each item in the virtual table by pointer operation.
Derived * p = new Derived ()
int * addr = reinterpret_cast <int *> (p);
int * vptr = reinterpret_cast <int *> (* addr);
// Take the items in the virtual table:
int * func1 = reinterpret_cast <int *> (vptr [0]);
int * func2 = reinterpret_cast <int *> (vptr [1]);
Then I checked the values of func1 and func2 in DEBUG. I did this when I encountered this problem. It was a bit troublesome. Maybe there is a better way. |
|