看板 DFBSD_submit 關於我們 聯絡資訊
On Sun, Sep 26, 2004 at 08:14:48PM +0200, Henry Kleynhans wrote: > Patrick Mauritz wrote: > >#define BOOST_PYTHON_OFFSETOF(s_name, s_member) \ > > (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast > ><const volatile char &> (static_cast<s_name *> (0)->s_member)))) > > > >in boost/python/detail/config.hpp fixes things > > Is this GCC version specific? The problem is that __offsetof__ is GCC 3.4 specific. I haven't yet decided if I want to put something like this in our header files or not. Joerg > > Kind regards, > > Henry