Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] compile error using arg1
From: Paul Heil (paul.heil_at_[hidden])
Date: 2009-02-10 10:00:12


On Mon, Feb 9, 2009 at 8:13 PM, Joel de Guzman <joel_at_[hidden]>wrote:

> Paul Heil wrote:
>
>> While expanding my horizons to include functional programming, I've run in
>> to a problem with boost::phoneix lambda functions. I'm trying to use a
>> for_each() command with an overloaded<< operator, but I can't seem to get
>> they types right, and I get a compile error:
>> test.cpp(147) : error C2679: binary '<<' : no operator found which takes a
>> right-hand operand of type 'const boost::phoenix::actor<Eval>' (or there is
>> no acceptable conversion)
>>
>
> Did you include operator.hpp?
>
> Regards,
> --
> Joel de Guzman
> http://www.boostpro.com
> http://spirit.sf.net
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

If by "operator.hpp", you mean "#include
<boost/spirit/include/phoenix_operator.hpp>" then, no I didn't. I just added
it and it seems to work great.

Thanks for your help!
-PaulH



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