2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-18 02:12:09 +00:00

boost/phoenix/statement/do_while and while fix shadow do_

This commit is contained in:
John Fletcher
2014-02-07 09:30:47 +00:00
parent b795fd4a3e
commit 90da349e64
2 changed files with 4 additions and 4 deletions

View File

@@ -27,10 +27,10 @@ namespace boost { namespace phoenix
template <typename Cond, typename Do, typename Context>
result_type
operator()(Cond const& cond, Do const& do_, Context const & ctx) const
operator()(Cond const& cond, Do const& do_it, Context const & ctx) const
{
do
boost::phoenix::eval(do_, ctx);
boost::phoenix::eval(do_it, ctx);
while (boost::phoenix::eval(cond, ctx));
}
};

View File

@@ -27,11 +27,11 @@ namespace boost { namespace phoenix
template <typename Cond, typename Do, typename Context>
result_type
operator()(Cond const& cond, Do const& do_, Context const & ctx) const
operator()(Cond const& cond, Do const& do_it, Context const & ctx) const
{
while(boost::phoenix::eval(cond, ctx))
{
boost::phoenix::eval(do_, ctx);
boost::phoenix::eval(do_it, ctx);
}
}
};