From 315b237f2a1d0085ac692ca439ead8ec2ef64ffa Mon Sep 17 00:00:00 2001 From: Xie Han <63350856@qq.com> Date: Wed, 14 Feb 2024 21:13:59 +0800 Subject: [PATCH] Remove std::move() --- src/manager/WFFacilities.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }