Subobject constructors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subobject constructors



The wording in 3.3 about subobject constructors is misleading:

  If the not-in-charge constructor calls constructors for base class
  subobjects that do not need construction vtables, the construction
  vtable parameter is not passed to the base class subobject
  constructor, and the base class subobject constructors use their
  complete object vtables for initialization.

This is also true when an in-charge constructor is making the call.
There is never a need to pass a VTT to a base class subobject that
doesn't have virtual bases.

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