Re: Empty base optimization, sharing vptrs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty base optimization, sharing vptrs



>>>>> Matt Austern <austern@xxxxxxxxxxxxxxxxxxx> writes:

 > Another goof I just noticed: if it's a virtual but nonpolymorphic
 > base class then we can't put it at offset 0, because the derived
 > class has a vptr at offset 0 and the base class doesn't.

If it's empty and nonpolymorphic, then it doesn't matter where we put it
because its address will never be used for anything.

Jason