Boost logo

Boost :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-02-04 08:05:38


----- Original Message -----
From: "Gabriel Dos Reis" <gdr_at_[hidden]>

> "Dave Abrahams" <dave_at_[hidden]> writes:
>
> | On Tuesday, February 04, 2003 4:05 AM [GMT+1=CET],
> | Gabriel Dos Reis <gdr_at_[hidden]> wrote:
> |
> | > "Joel de Guzman" <djowel_at_[hidden]> writes:
> | >
> | > > Hi,
> | > >
> | > > I'm not sure if you are aware of this but g++ 2.95.3 cannot
> | > > handle the casts:
> | > >
> | > > g++ 2.95.3 [no STLport]
> | > > C:/dev/boost/boost/mpl/integral_c.hpp:67: sorry, not implemented:
> | > > `static_cast_expr' not supported by dump_expr
> | >
> | > This means that the part of GCC-2.95.x compiler responsible for
> | > pretty-printing "static_cast_expr" was not taught to do its homework.
> |
> | In that case it would seem likely that it could be fixed by reverting to
> | C-style cast, no?
>
> Yes, I believe so.

Yup, this works:

#elif defined(__GNUC__) && (__GNUC__ < 3)
    // g++ 2.95.3 cannot take static_cast the casts,
    typedef integral_c<T, T(value + 1)> next;
    typedef integral_c<T, T(value - 1)> prior;

Joel de Guzman
joel_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