Re: class memory layout in vc 6.0



Brian Muth a écrit :
Perhaps you are not aware that there is no class that is of size 0. The minimum size of any class is 1 byte.

But there is the empty base optimization:
http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=319

I have no idea if VC++ (6/7/8) implements it.

--
Aurelien Regat-Barrel
.