id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2826,constant boost::mpl::aux::template_arity_impl::value causes 64 bit truncation warning,pelee@…,Joel Falcou,"When compiled for a 64 bit target, the constant boost::mpl::aux::template_arity_impl::value causes a warning about possible truncation of a 64 bit value to 32 bits. This is because size_t (returned by sizeof()) is 64 bits, while value is declared as an int. One fix would be to declare the constant as a size_t. Instead I added a static_cast on the assumption that it would be less disruptive and the value returned by sizeof() was unlikely to require more than 32 bits. {{{ typename arity_tag<6>::type arity_helper(type_wrapper< F< T1,T2,T3,T4,T5,T6 > >, arity_tag<6>); template< typename F, int N > struct template_arity_impl { BOOST_STATIC_CONSTANT(int, value = static_cast(sizeof(arity_helper(type_wrapper(), arity_tag())) - 1) ); }; }}} ",Bugs,new,Boost 1.47.0,mpl,Boost Release Branch,Problem,,,joel.falcou@…