Re: how to compute offset of data member at compile time (virtual class)

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

 



On Fri, 26 Oct 2007 04:59:20 +1000
skaller <skaller@xxxxxxxxxxxxxxxxxxxxx> wrote:

> I use offsetof() on constructible types with virtual functions
> extensively in Felix to calculate the offsets of every pointer
> in every heap allocated data type. Thankfully gcc has a switch
> now which allows this, -Wno-invalid-offsetof, because it is the 
> only way to get the information required, and the 
> information is mandatory for my garbage collector. It works fine
> on MSVC++ too.

THANK YOU! I'd missed the -Wno-invalid-offsetof switch, that
did the trick.

j

-- 
John Gateley <gateley@xxxxxxxxxx>

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux