id summary reporter owner description type status milestone component version severity resolution keywords cc 2228 signed overflow problem in weighted_sum on VC9.0 Pavol Droba Eric Niebler "Hi, I have spotted rather unexpected behaviour while using weighted_sum. Here is the simple code: {{{ // use namespaces using namespace boost::accumulators; using namespace std; // create a int accumulator with std::size_t weight accumulator_set, std::size_t> Accum; // Accumulate negative value with positive weight Accum(-56, boost::accumulators::weight=3); // Print the output wcout << ""sum: "" << boost::accumulators::weighted_sum(Accum) << endl; }}} I was expecting to get result -168, however I got 4294967128. I have traced the problem to weighted_sum_impl. I don't know why, but {{{ weighted_sum_impl::weighted_sample }}} is resolved to {{{unsigned int}}}. I think this is plain wrong. " Bugs closed Boost 1.36.0 accumulator Boost 1.36.0 Problem invalid