Boost logo

Boost Users :

From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2005-04-07 11:10:04


Stephen Gross <sgross <at> darwin.epbi.cwru.edu> writes:

>
> >> 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
      );

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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