id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11437,rolling_mean returns incorrect result when using unsigned int,Gareth White ,Eric Niebler,"Using rolling_mean with a sample type of ""unsigned int"" leads to incorrect results. The following example outputs 1.43166e+009 instead of the expected 1. {{{ #include #include #include #include #include using namespace boost::accumulators; int main(int argc, char** argv) { accumulator_set> acc(tag::rolling_window::window_size = 3); acc(3); acc(2); acc(1); acc(0); std::cout << rolling_mean(acc) << std::endl; } }}} The same problem happens if the sample type is ""int"" but you pass unsigned ints to the accumulator. For example, if you replace the above code with the following code, the result is the same: {{{ accumulator_set> acc(tag::rolling_window::window_size = 3); acc(3U); acc(2U); acc(1U); acc(0U); }}} I found this problem using Visual Studio 2010, after upgrading from Boost 1.44.0 to 1.58.0. With Boost 1.44.0, the above examples return 1.",Bugs,new,To Be Determined,accumulator,Boost 1.58.0,Regression,,,