mirror of
https://github.com/boostorg/phoenix.git
synced 2026-02-14 13:02:10 +00:00
@@ -27,6 +27,7 @@ namespace boost { namespace phoenix
|
||||
template <typename T>
|
||||
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>(visitor));
|
||||
}
|
||||
|
||||
template <typename Visitor, typename Expr>
|
||||
inline void visit_each(Visitor& visitor, actor<Expr> const& a)
|
||||
{
|
||||
fusion::for_each(a, detail::visit_each_impl<Visitor>(visitor));
|
||||
}
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user