Merge pull request #460 from gummif/gfa/if-warn

Problem: if constexpr warnings on MSVC
This commit is contained in:
Simon Giesecke
2021-01-15 10:28:53 +01:00
committed by GitHub
2 changed files with 9 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ recv_multipart_n(socket_ref s, OutputIt out, size_t n, recv_flags flags)
size_t msg_count = 0;
message_t msg;
while (true) {
if (CheckN) {
if ZMQ_CONSTEXPR_IF (CheckN) {
if (msg_count >= n)
throw std::runtime_error(
"Too many message parts in recv_multipart_n");