Skip to content

Commit

Permalink
Fixing future::then
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Aug 10, 2017
1 parent 338459f commit d50348c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hpx/lcos/local/packaged_continuation.hpp
Expand Up @@ -525,12 +525,12 @@ namespace hpx { namespace lcos { namespace detail

ptr->execute_deferred();
ptr->set_on_completed(util::deferred_call(
[this_](shared_state_ptr && f, Policy && policy)
[this_](shared_state_ptr && f, launch policy)
{
if (hpx::detail::has_async_policy(policy))
this_->async(std::move(f), policy.priority());
this_->async(std::move(f), policy);
else
this_->run(std::move(f), policy.priority());
this_->run(std::move(f), policy);
},
std::move(state), std::forward<Policy>(policy)
));
Expand Down

0 comments on commit d50348c

Please sign in to comment.