id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6297,Warning under VC,Antony Polukhin,Douglas Gregor,"Warning text:[[BR]] c:\test\boost\boost\numeric\conversion\detail\converter.hpp(166) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\test\boost\boost\numeric\conversion\detail\converter.hpp(165) : while compiling class template member function 'boost::numeric::range_check_result boost::numeric::convdetail::GT_HiT::apply(bool)' with [ Traits=conv_traits ] c:\test\boost\boost\numeric\conversion\detail\converter.hpp(236) : see reference to class template instantiation 'boost::numeric::convdetail::GT_HiT' being compiled with [ Traits=conv_traits ] c:\test\boost\boost\numeric\conversion\detail\converter.hpp(288) : see reference to class template instantiation 'boost::numeric::convdetail::combine' being compiled with [ PredA=boost::numeric::convdetail::non_applicable, PredB=boost::numeric::convdetail::GT_HiT ] c:\test\boost\boost\numeric\conversion\detail\converter.hpp(287) : while compiling class template member function 'boost::numeric::range_check_result boost::numeric::convdetail::generic_range_checker::out_of_range(bool)' with [ Traits=conv_traits, IsNegOverflow=boost::numeric::convdetail::non_applicable, IsPosOverflow=boost::numeric::convdetail::GT_HiT, OverflowHandler=boost::numeric::numeric_cast_traits::overflow_policy ] c:\test\boost\boost\numeric\conversion\detail\converter.hpp(508) : see reference to class template instantiation 'boost::numeric::convdetail::generic_range_checker' being compiled with [ Traits=conv_traits, IsNegOverflow=boost::numeric::convdetail::non_applicable, IsPosOverflow=boost::numeric::convdetail::GT_HiT, OverflowHandler=boost::numeric::numeric_cast_traits::overflow_policy ] c:\test\boost\boost\numeric\conversion\converter.hpp(35) : see reference to class template instantiation 'boost::numeric::convdetail::non_rounding_converter' being compiled with [ Traits=conv_traits, RangeChecker=boost::numeric::convdetail::generic_range_checker,boost::numeric::numeric_cast_traits::overflow_policy>, RawConverter=boost::numeric::raw_converter ] c:\test\boost\boost\numeric\conversion\cast.hpp(53) : see reference to class template instantiation 'boost::numeric::converter' being compiled with [ T=int, S=bool, Traits=conv_traits, OverflowHandler=boost::numeric::numeric_cast_traits::overflow_policy, Float2IntRounder=boost::numeric::Trunc, RawConverter=boost::numeric::raw_converter, UserRangeChecker=boost::numeric::numeric_cast_traits::range_checking_policy ] The code that may lead to warning is like this: {{{ int val = boost::numeric_cast(true); }}} ",Feature Requests,new,To Be Determined,numeric,Boost 1.48.0,Cosmetic,,,antoshkka@…