At 06:11 2007-01-08, Paul Herring wrote:
On 1/8/07, Victor A. Wagner Jr.
<<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
At 03:53 2007-01-08, Paul Herring wrote:
On 1/8/07, Murali Marimekala
<<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > wrote:
Hi Gopi,
Thank you, does it mean, the size of n-number of
virtual functions without vairables in a class will be four byte
in any case :) ?
Since all the virtual functions are (assuming this is the model
used by the compiler) stored in the vtable, and the vtable address
is stored in the class, any additional virtual functions will be
added to the vtable outside the class, thus increasing the size of
the vtable, instead of the class.
The addition of any non-virtual object ot the class (functions,
variables, other classes) will increase the size of the class.
non-static variables will, not non-virtual functions
I'm missing something here Victor - how does your comment negate mine?
the way I read yours, the addition of a non-virtual function will
increase the size of the class.... not so
--
PJH
#713059 +(1255)- [X]
<SaintAlvus> Does the name Doctor Pavlov ring a bell?
Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"