Re: class memory layout in vc 6.0
- From: Aurelien Regat-Barrel <nospam.aregatba@xxxxxxxxxxxxxxxx>
- Date: Tue, 18 Sep 2007 11:00:21 +0530
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
.
- Follow-Ups:
- Re: class memory layout in vc 6.0
- From: Brian Muth
- Re: class memory layout in vc 6.0
- References:
- class memory layout in vc 6.0
- From: Sigurd Lerstad
- Re: class memory layout in vc 6.0
- From: Brian Muth
- class memory layout in vc 6.0
- Prev by Date: Re: why I can't see file and line number when try to detect memory leak?
- Next by Date: Re: class memory layout in vc 6.0
- Previous by thread: Re: class memory layout in vc 6.0
- Next by thread: Re: class memory layout in vc 6.0
- Index(es):