From 93b5fa198cea868f81bc912ebd5c3e6efc24c725 Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Thu, 27 Sep 2018 08:47:03 +0800 Subject: [PATCH] Update threaded_queue.h (#82) https://en.cppreference.com/w/cpp/language/fold --- src/threaded_queue.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/threaded_queue.h b/src/threaded_queue.h index a16568e5..ccafc443 100644 --- a/src/threaded_queue.h +++ b/src/threaded_queue.h @@ -36,8 +36,7 @@ private: } template void unlock_impl(std::index_sequence) { - (void)std::initializer_list{ - (std::get(tuple_)->mutex_.unlock(), 0)...}; + (std::get(tuple_)->mutex_.unlock(), ...); } std::tuple tuple_;