id summary reporter owner description type status milestone component version severity resolution keywords cc 8181 Accumulator : compilation error due to average function Cecile Daversin Eric Niebler "Hello, I'm trying to use accumulators to compute the mean of a set of double. Firstly, I instantiate an accumulator_set object using the correct tag, as following : {{{ #include #include typedef boost::accumulators::accumulator_set > accumulator_type; accumulator_type acc; }}} I try to compile this code with clang and with gcc(4.6), and both of them give the same kind of error : With clang : /usr/include/boost/accumulators/statistics/mean.hpp:42:48: error: too many arguments provided to function-like macro invocation return numeric::average(sum(args), count(args)); With gcc : /usr/include/boost/accumulators/statistics/mean.hpp:42:59: error: macro ""average"" passed 2 arguments, but takes just 1" Bugs closed To Be Determined accumulator Boost 1.49.0 Problem worksforme