From 30fdfe028761436811f9e33885c0c207fc8f3769 Mon Sep 17 00:00:00 2001 From: Gudmundur Adalsteinsson Date: Sat, 7 Dec 2019 12:06:15 +0000 Subject: [PATCH] Simplify code by trusting the compiler --- zmq_addon.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index fcabda8..86acec2 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -50,11 +50,7 @@ recv_result_t recv_multipart_n(socket_ref s, OutputIt out, size_t n, message_t msg; while (true) { - #ifdef ZMQ_CPP17 - if constexpr (CheckN) - #else if (CheckN) - #endif { if (msg_count >= n) throw std::runtime_error("Too many message parts in recv_multipart_n");