11 Oct
2010
11 Oct
'10
4:39 p.m.
On 10/11/2010 8:05 AM, Adrien Todeschini wrote:
It should be as simple as using the "sample" keyword in the boost::accumulators namespace, like:
using namespace boost::accumulators; accumulator_set< int, featurestag::weighted_sum > acc( sample = 42 )
Thanks Eric. Indeed, it works ! But my problem was actually independent of this. I am using more features, and it seems that we can't use more than 4 tagged arguments !!! <snip>
I wanted acc2, so I thought my syntax using the "sample" keyword was wrong but it was not, as acc3 and acc4 do compile. Is that a bug ? <snip>
Sounds like it. Could you try defining BOOST_PARAMETER_MAX_ARITY to be something higher, like 10? -- Eric Niebler BoostPro Computing http://www.boostpro.com