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:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user