The above two are equlivant. One is just a legal as the other -- the compiler assumed the programmer knows what he is doing.Code:*ppa = pd; // this should be legal.
ppd = (Dog**)&c;
Printable View
The above two are equlivant. One is just a legal as the other -- the compiler assumed the programmer knows what he is doing.Code:*ppa = pd; // this should be legal.
ppd = (Dog**)&c;
Thanks for that linkQuote:
Originally Posted by Paul McKenzie
Thanks, Mr Superkoko and NMTop40.
It took me some time to see that what i did, results in a totally different call of a function from the v-table of the other object.
Thanks everyone for your time