Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] Strange integral constant overflow warning in mpl::less_equal
From: Edward Diener (eldiener_at_[hidden])
Date: 2009-12-19 00:03:56


Steven Watanabe wrote:
> 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;

I agree. Is this not a bug in mpl ?


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