id summary reporter owner description type status milestone component version severity resolution keywords cc 9524 assertions in range-based inner_product will change behavior Eric Niebler Neil Groves "In range/numeric.hpp, in `inner_product`, I see the following assertion: {{{ BOOST_ASSERT( boost::distance(rng2) >= boost::distance(rng1) ); }}} A good idea in theory. But `rng2` and `rng1` can be input ranges. Simply computing the distance will consume the input that the algorithms needs. Drop the assertions. " Bugs closed To Be Determined range Boost 1.54.0 Problem fixed