Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix][spirit] Is is possible to use phoenix v3 and spirit in parallel?
From: Michael Caisse (boost_at_[hidden])
Date: 2011-04-04 19:39:41


On 4/4/2011 4:31 PM, Michael Caisse wrote:
> On 4/4/2011 3:41 PM, alfC wrote:
>> Hi, I have a program that uses Phoenix and Spirit. Spirit uses
>> indirectly Phoenix2.
>> With some effort I modified the part that use Phoenix to phoenix3 but
>> now when I want to put all together it complains.
>>

>>
>> The question is how can I use Phoenix3 and Spirit in the same code (in
>> parallel).
>>
>> thank you,
>> Alfredo
>
> The trunk version of Spirit allows Phoenix V3. There are some #define's
> to enable the functionality ... which I don't recall off the top of my
> head.
>
> michael
>

Alfredo -

Taking a look at the testing Jamfile it looks like the following will do it:

     : <define>BOOST_SPIRIT_USE_PHOENIX_V3=1
         <define>BOOST_PROTO_MAX_ARITY=11
         <define>BOOST_PROTO_MAX_LOGICAL_ARITY=11
         <define>BOOST_MPL_LIMIT_METAFUNCTION_ARITY=12

michael

-- 
----------------------------------
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

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