19 Dec
2009
19 Dec
'09
5:03 a.m.
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 ?