diff --git a/src/manager/WFFacilities.inl b/src/manager/WFFacilities.inl index 16c790a8..6550845e 100644 --- a/src/manager/WFFacilities.inl +++ b/src/manager/WFFacilities.inl @@ -185,7 +185,7 @@ inline WFFacilities::WaitGroup::WaitGroup(int n) : nleft(n) auto *pr = new WFPromise(); this->task = WFTaskFactory::create_counter_task(1, __wait_group_callback); - this->future = std::move(pr->get_future()); + this->future = pr->get_future(); this->task->user_data = pr; this->task->start(); }