public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* sizeof with virtual inheritance
@ 2004-04-27  4:50 Adrian Sandor
  2004-04-27 12:13 ` Eljay Love-Jensen
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Sandor @ 2004-04-27  4:50 UTC (permalink / raw)
  To: gcc-help

Hello,
I would like to know why the size of class objects grows when virtual
inheritance is involved. I suppose the compiler adds some extra pointers to
them; I would like to know what they are for and why they are necessary, and if
it's possible to avoid them (or use at most one extra pointer).
I googled for this a bit, and I found an answer which suggests the use of an
attribute called "onevtable", but I can't find any other reference about it.
I'm using gcc 3.2 (I know, I know..) on Windows (mingw). I could switch to gcc
3.3.x if necessary.

Thanks
Adrian

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-07 23:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27  4:50 sizeof with virtual inheritance Adrian Sandor
2004-04-27 12:13 ` Eljay Love-Jensen
2004-05-07 19:39   ` Adrian Sandor
2004-05-07 20:30     ` Eljay Love-Jensen
2004-05-07 20:38       ` Eljay Love-Jensen
2004-05-07 20:50       ` Adrian Sandor
2004-05-07 23:42         ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).