Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-04-07 11:50:02


Stephen Gross wrote:
>>>> When including "boost/iterator/indirect_iterator.hpp", I get:
>>>>
>>>> "/usr/local/sagedev/apis/include/boost_1_32_0/boost/detail/is_incrementa
>>>> ble.hpp",
>>>> line 56: error:
>>>>
>>>> expression must have arithmetic, enum, or pointer type
>>>>
>>>> BOOST_STATIC_CONSTANT(
>>>> ^
>>>> "/usr/local/sagedev/apis/include/boost_1_32_0/boost/detail/is_incrementa
>>>> ble.hpp",
>
> This is a shot in the dark, but why don't you try replacing
>
> BOOST_STATIC_CONSTANT(
> bool
> , value =
> sizeof(is_incrementable_::check(BOOST_comma(++x,0))) == 1 );
>
> with
>
> BOOST_STATIC_CONSTANT(
> int
> , value =
> sizeof(is_incrementable_::check(BOOST_comma(++x,0))) == 1 );
>
>
> Replace it? Where?

in boost/detail/is_incrementable.hpp

> All I did was include a boost file, and this
> compile error was produced!
>
> --Steve

Jonathan


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