Friday, December 3, 2010

Class Size

class VFAC : public VFA {virtual int f() {return 1;}}; is 4 bytes on Solaris.

For the vptr, because there is a virtual function declared in the class, and the fact that the derived class and the first base class share the same vptr.

No comments:

Post a Comment