diff --git a/src/threaded_queue.hh b/src/threaded_queue.hh index 2d55dbfe..52bc899c 100644 --- a/src/threaded_queue.hh +++ b/src/threaded_queue.hh @@ -135,7 +135,7 @@ public: auto val = std::move(q->front()); q->pop_front(); --total_count_; - return std::move(val); + return val; }; if (!priority_.empty()) return execute(&priority_); @@ -150,7 +150,7 @@ public: auto val = std::move(q->front()); q->pop_front(); --total_count_; - return std::move(val); + return val; }; if (priority_.size()) return execute(&priority_);