/*============================================================================== Copyright (c) 2005-2010 Joel de Guzman Copyright (c) 2010 Thomas Heller Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #ifndef BOOST_PHOENIX_CORE_VISIT_EACH_HPP #define BOOST_PHOENIX_CORE_VISIT_EACH_HPP #include #include #include namespace boost { namespace phoenix { template struct actor; namespace detail { template struct visit_each_impl { Visitor& visitor; visit_each_impl(Visitor& visitor ) : visitor(visitor) {} template void operator()(T const& t) const { using boost::visit_each; visit_each(visitor, t); } }; } template inline void visit_each(Visitor& visitor, actor const& a, long) { 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