DragonFly BSD
DragonFly submit List (threaded) for 2004-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [dfports] devel/boost override - help request.


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 26 Sep 2004 21:32:54 +0200

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



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