Skip to content

Commit

Permalink
future: add missing std::forward() in do_until_continued()
Browse files Browse the repository at this point in the history
  • Loading branch information
gleb-cloudius authored and avikivity committed Jan 6, 2015
1 parent 66eea76 commit 3f483b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/future-util.hh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void do_until_continued(StopCondition&& stop_cond, AsyncAction&& action, promise
if (!f.available()) {
f.then([action = std::forward<AsyncAction>(action),
stop_cond = std::forward<StopCondition>(stop_cond), p = std::move(p)]() mutable {
do_until_continued(stop_cond, action, std::move(p));
do_until_continued(stop_cond, std::forward<AsyncAction>(action), std::move(p));
});
return;
}
Expand Down

0 comments on commit 3f483b2

Please sign in to comment.