Clarifying "nearly empty class"

Mark Mitchell mark at codesourcery.com
Tue Dec 21 21:12:29 UTC 1999


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?

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list