mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-20 21:08:37 +02:00
Simplify code by trusting the compiler
This commit is contained in:
parent
93e3090eb3
commit
30fdfe0287
@ -50,11 +50,7 @@ recv_result_t recv_multipart_n(socket_ref s, OutputIt out, size_t n,
|
|||||||
message_t msg;
|
message_t msg;
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
#ifdef ZMQ_CPP17
|
|
||||||
if constexpr (CheckN)
|
|
||||||
#else
|
|
||||||
if (CheckN)
|
if (CheckN)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if (msg_count >= n)
|
if (msg_count >= n)
|
||||||
throw std::runtime_error("Too many message parts in recv_multipart_n");
|
throw std::runtime_error("Too many message parts in recv_multipart_n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user