From dd039fd09ed947ade589ec48b3652e3e339ed9d7 Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Wed, 26 Sep 2018 17:09:30 +0800 Subject: [PATCH] Update threaded_queue.h 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 c14307a3..d72f06d7 100644 --- a/src/threaded_queue.h +++ b/src/threaded_queue.h @@ -48,8 +48,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_;