|
Boost : |
Subject: Re: [boost] [Accumulators + Signals2] Compilation error with GCC when both are used
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-06-09 09:17:58
On Jun 9, 2011, at 9:04 AM, sguazt wrote:
> Hello,
>
> It seems that Accumulators and Signals2 have problems to coexist.
> For instance, look at the following simple C++ program:
>
> --- [c++] ---
> #include <boost/accumulators/accumulators.hpp>
> #include <boost/accumulators/statistics/stats.hpp>
> #include <boost/accumulators/statistics/mean.hpp>
> #include <boost/signals2.hpp>
>
> int main()
> {
> }
> In file included from ./boost-trunk/boost/signals2.hpp:20:0,
> from boost_signals2_accumulators.cpp:4:
> ./boost-trunk/boost/signals2/signal_type.hpp:29:2: error: #error This
> header requires BOOST_PARAMETER_MAX_ARITY to be defined as 7 or
> greater prior to including Boost.Parameter headers
The error is pretty clear and
#define BOOST_PARAMETER_MAX_ARITY 7
at the top of your program fixes it.
Cheers,
Gordon
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk