Data Layout
Jim Dehnert
dehnert at baalbek.engr.sgi.com
Sat Dec 18 02:08:44 UTC 1999
> From: Mark Mitchell <mark at codesourcery.com>
>
> Question:
>
> Does the presence of a zero-width bit-field prevent a class from
> being empty?
>
> Suggested Resolution:
>
> No. Amend the definition of an "empty class" to read:
>
> A class with no non-static data members other than zero-width
> bitfields, no virtual functions, no virtual base classes, and no
> non-empty non-virtual base classes.
>
> Amend the definition of a "nearly empty class" to read:
>
> A class, the objects of which contain only a Vptr and zero-width
> bitfields.
I've added this as issue A-15. Is there an issue with maintaining
distinct addresses for multiple zero-width bitfields, or is that not a
problem?
Jim
- Jim Dehnert dehnert at sgi.com
(650)933-4272
More information about the cxx-abi-dev
mailing list