diff --git a/src/msg/async/rdma/RDMAStack.cc b/src/msg/async/rdma/RDMAStack.cc index 443ac7fa448..66c7e5634ab 100644 --- a/src/msg/async/rdma/RDMAStack.cc +++ b/src/msg/async/rdma/RDMAStack.cc @@ -526,7 +526,7 @@ RDMAStack::~RDMAStack() void RDMAStack::spawn_worker(unsigned i, std::function &&func) { threads.resize(i+1); - threads[i] = std::move(std::thread(func)); + threads[i] = std::thread(func); } void RDMAStack::join_worker(unsigned i)