Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] compile error using arg1
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-02-09 21:13:07


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 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