On Mon, Feb 9, 2009 at 8:13 PM, Joel de Guzman <joel@boost-consulting.com> 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@lists.boost.org
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