Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-06-02 22:49:16


There is a fix for this in root/boost/python/detail/config.hpp:

// Work around the broken library implementation/strict ansi checking
on some
// EDG-based compilers (e.g. alpha), which incorrectly warn that the
result of
// offsetof() is not an integer constant expression.
# if defined(__DECCXX_VER) && __DECCXX_VER <= 60290024
# define BOOST_OFFSETOF(s_name, s_member) \
        ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
# else
# define BOOST_OFFSETOF(s_name, s_member) \
        offsetof(s_name, s_member)
# endif

Wouldn't it make sense to move this to the top-level config.hpp
(Jens?)?
Ralf

--- In boost_at_y..., larsbj_at_l... wrote:
>
> We are trying to use the boost::crc lib with lyx, but have this
> problem with Compaq cxx:
>
> Please tell us if you need more information, or somebody to test a
> possible fix.
>
>
>
> >>>>> "Lars" == Lars Gullik Bjønnes <larsbj_at_l...> writes:
>
> Lars> We should take this to the boost list with a testcase and the
> Lars> compiler error messages.
>
> Well, the test case is
> ------
> #include <boost/crc.hpp>
> ------
> The error message is
>
> cxx: Error: ../../../lyx-devel/boost/boost/crc.hpp, line 283:
> expression must have integral or enum type
> BOOST_STATIC_CONSTANT( least, high_bit = (least( 1u ) << (
Bits
> --------^
> cxx: Error: ../../../lyx-devel/boost/boost/crc.hpp, line 285:
> expression must have integral or enum type
> BOOST_STATIC_CONSTANT( fast, high_bit_fast = (fast( 1u ) <<
( Bits
> --------^
> cxx: Error: ../../../lyx-devel/boost/boost/crc.hpp, line 343:
> expression must have integral or enum type
> BOOST_STATIC_CONSTANT( least, sig_bits = (~( ~(least( 0u ))
<< Bits )) );
> --------^
>
> and the compiler is
> fantomas: cxx -V
> Compaq C++ V6.2-024 for Digital UNIX V4.0F (Rev. 1229)
>
>
> Did you have something else in mind?
>
> JMarc
>
>
>
>
> --
> Lgb


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk