Clarifying "nearly empty class"

Jim Dehnert dehnert at baalbek.engr.sgi.com
Tue Dec 21 22:27:47 UTC 1999


> From: Mark Mitchell <mark at codesourcery.com>
> 
> The definition of "nearly empty class" is not as clear as it could be.
> 
> How about:
> 
>   "A class that:
> 
>    o Has no non-static data members (except, possibly, zero-width bitfields)
>    o Has no base classes that are not either empty or nearly-empty.
>    o Has at most one nearly-empty base class.
>    o Has at least one virtual function (possibly inherited from a base class).
>    
>    Such a class contains only a Vptr."
> 
> Does that conform the committee's intent?

I believe so, and I've fixed the documents.

-	    Jim Dehnert		dehnert at sgi.com
				(650)933-4272




More information about the cxx-abi-dev mailing list