From 1dcb6e696d559d25de92569e41dcad2936bec7b3 Mon Sep 17 00:00:00 2001 From: dmatetelki Date: Wed, 18 May 2016 11:19:23 +0200 Subject: [PATCH] ConcurrentDeque::push takes const reference TODO: adding a void push(T&& value) with same body --- lib/cpp_utils/ConcurrentDeque.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpp_utils/ConcurrentDeque.hpp b/lib/cpp_utils/ConcurrentDeque.hpp index a855911..7ad255a 100644 --- a/lib/cpp_utils/ConcurrentDeque.hpp +++ b/lib/cpp_utils/ConcurrentDeque.hpp @@ -33,7 +33,7 @@ public: TRACE; } - void push(const T value) + void push(const T& value) { TRACE; std::unique_lock lock(m_mutex);