#include #include //WORKS: //#include //DOES NOT WORK: #include namespace phx = boost::phoenix; int main() { using phx::arg_names::arg1; std::vector v; for (int i = 1; i < 10; i++) v.push_back(i); ( std::cout << phx::val("("), phx::for_each(arg1, phx::lambda[std::cout << arg1]), std::cout << phx::val(")") )(v); return 0; }