diff --git a/include/boost/phoenix/core/visit_each.hpp b/include/boost/phoenix/core/visit_each.hpp index 3c7e39a..ad4ca14 100644 --- a/include/boost/phoenix/core/visit_each.hpp +++ b/include/boost/phoenix/core/visit_each.hpp @@ -27,6 +27,7 @@ namespace boost { namespace phoenix template void operator()(T const& t) const { + using boost::visit_each; visit_each(visitor, t); } }; @@ -37,6 +38,12 @@ namespace boost { namespace phoenix { fusion::for_each(a, detail::visit_each_impl(visitor)); } + + template + inline void visit_each(Visitor& visitor, actor const& a) + { + fusion::for_each(a, detail::visit_each_impl(visitor)); + } }} #endif