Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty base optimization, sharing vptrs


  • To: "Matt Austern" <austern@xxxxxxxxxxxxxxxxxxx>
  • Subject: Re: Empty base optimization, sharing vptrs
  • From: Jason Merrill <jason@xxxxxxxxxx>
  • Date: 16 Jun 1999 21:02:51 -0700

>>>>> 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