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>