Remove std::move()

This commit is contained in:
Xie Han
2024-02-14 21:13:59 +08:00
parent 06a39cb5c9
commit 315b237f2a
+1 -1
View File
@@ -185,7 +185,7 @@ inline WFFacilities::WaitGroup::WaitGroup(int n) : nleft(n)
auto *pr = new WFPromise<void>();
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();
}