From a2755260a561e8578ff6e9f4ca925d47fe8fd266 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 20 Oct 2018 21:58:32 +0200 Subject: [PATCH] no deleter --- locked_queue.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/locked_queue.hh b/locked_queue.hh index 6246525..7a98d86 100644 --- a/locked_queue.hh +++ b/locked_queue.hh @@ -9,7 +9,7 @@ namespace utility { - template + template class locked_queue { typedef std::recursive_mutex Mutex; @@ -28,10 +28,6 @@ namespace utility void clear() { Lock L(_mtx); - for(auto& element : _q) - { - deleter(element); - } _q.clear(); }