Boost logo

Boost :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-02-04 03:31:52


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
C:/dev/boost/boost/mpl/integral_c.hpp:67: sorry, not implemented: `static_cast_expr' not supported
by dump_expr
C:/dev/boost/boost/mpl/integral_c.hpp:68: sorry, not implemented: `static_cast_expr' not supported
by dump_expr
C:/dev/boost/boost/mpl/integral_c.hpp:68: sorry, not implemented: `static_cast_expr' not supported
by dump_expr

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

Regards,
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