|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-09-13 08:50:27
From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
> Toon Knapen wrote:
> > I got following error when including <boost/mpl/bool_c.hpp>
> > with the mipspro compiler on SGI :
> As for the errors - may be changing
>
> typedef integral_c<T, value + 1> next;
> typedef integral_c<T, value - 1> prior;
>
> to
>
> typedef integral_c<T, N + 1> next;
> typedef integral_c<T, N - 1> prior;
>
> will help?
These old EDG compilers have problems with ice's. It usually makes sense to
compute them separately:
BOOST_STATIC_CONSTANT(T, next_value = value + 1);
typedef integral_c<T, next_value> next;
or simply parenthesize:
typedef integral_c<T, (value + 1)> next;
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk