Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] Strange integral constant overflow warning in mpl::less_equal
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-18 23:58:58


AMDG

Edward Diener wrote:
> This simplified version of some TMP code I am writing using mpl and
> integer_traits is giving me a strange warning. I'm using VC9 and Boost
> 1.40:
>
> -------------------------------------------------------------------------------------
>
>
> struct ResultTypeIntegerValues
> {
> typedef boost::mpl::long_<0L> lzero;
> typedef boost::mpl::long_<boost::integer_traits<long>::const_min> lmin;
> typedef boost::mpl::less_equal<lmin,lzero>::type type;
> };

The problem is the prior typedef.

    typedef AUX_WRAPPER_INST(
BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;

In Christ,
Steven Watanabe


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