In-charge constructors/destructors

Mark Mitchell mark at codesourcery.com
Sun Apr 9 19:26:37 UTC 2000


There are two bits I noticed regarding constructors/destructors:

  o The ABI doesn't actually specify that when a compiler puts out
    one variant that it should put out the others as well, unless the
    function was declared inline, or has internal linkage.  For example,
    if the constructor is defined in some `.C' file, then we need to
    write out both the in-charge and not-in-charge versions in the
    corresponding .o file.  Maybe this is so obvious that it can
    remain unsaid.

  o Also, as written, the ABI seems to say that you need both
    in-charge and not in-charge variants, even if the type has no
    virtual bases.  We should say that when there are no virtual 
    bases, you don't need the not-in-charge variant, I think.

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




More information about the cxx-abi-dev mailing list