Boost logo

Boost :

Subject: Re: [boost] [accumulator] no type named 'result_type' in 'boost::fusion::void_'
From: Eric Niebler (eric_at_[hidden])
Date: 2011-10-04 13:20:47


On 10/2/2011 9:03 AM, Vicente J. Botet Escriba wrote:
> Le 01/10/11 20:05, Eric Niebler a écrit :
>> On 10/1/2011 9:25 AM, Vicente J. Botet Escriba wrote:
>>> Hi,
>>>
>>> I'm getting this error on trunk
>>>
>>> ../../../boost/accumulators/framework/extractor.hpp:36:74: error: no
>>> type named 'result_type' in 'boost::fusion::void_'
>>> typedef typename mpl::apply<AccumulatorSet,
>>> feature_type>::type::result_type type;
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
>>>
>>> I'm including
>>> #include<boost/accumulators/framework/accumulator_set.hpp>
>>> #include<boost/accumulators/statistics/count.hpp>
>>
>> You mean, you are compiling a .cpp file with just those two lines and
>> nothing else? I can't reproduce this error.
>
> No the program is just
>
> #include <boost/accumulators/framework/accumulator_set.hpp>
> #include <boost/accumulators/statistics/count.hpp>
>
> int main() {
> boost::accumulators::accumulator_set<int,
> boost::accumulators::features<boost::accumulators::tag::count> > acc;
> std::size_t c= boost::accumulators::count(acc);
> }

You also need:

#include <boost/accumulators/framework/features.hpp>

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk