Boost logo

Boost Users :

From: chris botos (chris.botos_at_[hidden])
Date: 2006-11-14 19:45:41


On 11/14/06, Caleb Epstein <caleb.epstein_at_[hidden]> wrote:
>
>
> Not sure if it helps, but the compiler seems to be complaining about this
> line:
>
>
> BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1)
> == 0);
>
> Where Solaris appears to define offsetof() in
> /usr/include/iso/stddef_iso.h as:
>
> #if __cplusplus >= 199711L
> #define offsetof(s, m) (std::size_t)(&(((s *)0)->m))
> #else
> #define offsetof(s, m) (size_t)(&(((s *)0)->m))
> #endif
>
> Not sure if there is much that I can do to help aside from saying "it
> works for me" using gcc 4.1.1.

Thanks for looking at this and the info, Caleb. I'll see about about
upgrading gcc and giving it another try.
- Chris



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net