Boost logo

Boost Users :

Subject: [Boost-users] [phoenix][accumulators] Is is possible to use phoenix v3 and accumulators in parallel?
From: alfC (alfredo.correa_at_[hidden])
Date: 2011-04-17 15:01:31


Hi,

  Last week I started a thread called "[Boost-users] [phoenix][spirit]
Is is possible to use phoenix v3 and spirit in parallel? " . While
that issue seems under control, now I found a compatibility problem
between accumulators and phoenix 3.

#include <boost/phoenix/phoenix.hpp> //#include <boost/spirit/home/
phoenix.hpp>
#include<boost/accumulators/accumulators.hpp>
#include<boost/accumulators/statistics/min.hpp>

int main(){
        return 0;
}

gives an error

boost/accumulators/numeric/detail/function_n.hpp:83:1: error:
‘apply12’ in namespace ‘boost::mpl’ does not name a type

I tried predefining certain macros but it didn't work:

#define BOOST_SPIRIT_USE_PHOENIX_V3
#define BOOST_PROTO_MAX_ARITY 11
#define BOOST_PROTO_MAX_LOGICAL_ARITY 11
#define BOOST_MPL_LIMIT_METAFUNCTION_ARITY 12

Is there a workaround?

Thank you,
Alfredo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net