Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2003-02-04 15:25:18


Joel de Guzman wrote:
> I'm not sure if you are aware of this but g++ 2.95.3 cannot
> handle the casts:

[snip errors]

> and I must revert to:
>
> #elif defined(__GNUC__) && (__GNUC__ < 3)
> // g++ 2.95.3 cannot take the casts,
> typedef integral_c<T, (value + 1)> next;
> typedef integral_c<T, (value - 1)> prior;
> #else
> typedef integral_c<T, static_cast<T>(value + 1)> next;
> typedef integral_c<T, static_cast<T>(value - 1)> prior;
> #endif

Fixed now in the CVS.

Aleksey


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