Boost logo

Boost :

Subject: Re: [boost] [accumulator] no type named 'result_type' in 'boost::fusion::void_'
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-10-02 12:03:43


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);
}
>
>> If I add the following include everything is OK.
>>
>> #include<boost/accumulators/accumulators.hpp>
>>
>> Is this a know issue?
> Nope. I'll need a bit more information, though.
>
The compiler log follows.

Best,
Vicente

bjam toolset=clang -q
...patience...
...patience...
...found 2911 targets...
...updating 36 targets...
clang-darwin.compile.c++
../../../bin.v2/libs/chrono/test/basic_stopwatch_laps_accumulator_set_pass_shared.test/clang-darwin-4.2.1/debug/stopwatch/basic_stopwatch_laps_accumulator_set_pass.o
../../../boost/accumulators/framework/extractor.hpp: In instantiation of
‘boost::accumulators::detail::accumulator_set_result<boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void>,
boost::accumulators::tag::count>’:
../../../boost/mpl/eval_if.hpp:38: instantiated from
‘boost::mpl::eval_if<boost::accumulators::detail::is_accumulator_set<boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void> >,
boost::accumulators::detail::accumulator_set_result<boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void>,
boost::accumulators::tag::count>,
boost::accumulators::detail::argument_pack_result<boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void>,
boost::accumulators::tag::count> >’
../../../boost/accumulators/framework/extractor.hpp:57: instantiated
from
‘boost::accumulators::detail::extractor_result<boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void>,
boost::accumulators::tag::count>’
stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp:8: instantiated
from here
../../../boost/accumulators/framework/extractor.hpp:36: error: no type
named ‘result_type’ in ‘struct boost::fusion::void_’
stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp: In function
‘int main()’:
stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp:8: error: no
match for call to ‘(const
boost::accumulators::extractor<boost::accumulators::tag::count>)
(boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::count, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na>, void>&)’
stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp:8: warning:
unused variable ‘c’

"llvm-g++" -x c++ -O0 -g -Wextra -Wno-long-long -pedantic -O0
-fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1
-DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_THREAD_DISABLED
-DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_SYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -I"../../.." -c -o
"../../../bin.v2/libs/chrono/test/basic_stopwatch_laps_accumulator_set_pass_shared.test/clang-darwin-4.2.1/debug/stopwatch/basic_stopwatch_laps_accumulator_set_pass.o"
"stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp"

...failed clang-darwin.compile.c++
../../../bin.v2/libs/chrono/test/basic_stopwatch_laps_accumulator_set_pass_shared.test/clang-darwin-4.2.1/debug/stopwatch/basic_stopwatch_laps_accumulator_set_pass.o...
...failed updating 1 target...


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