Merge pull request #656 from cacharle/fix-std-max-compilation-error

Fix std::max compilation error on Windows
This commit is contained in:
Gudmundur Adalsteinsson
2025-04-18 19:45:52 +02:00
committed by GitHub

View File

@@ -2753,7 +2753,7 @@ template<typename T = no_user_data> class poller_t
{
int rc = zmq_poller_size(const_cast<void *>(poller_ptr.get()));
ZMQ_ASSERT(rc >= 0);
return static_cast<size_t>(std::max(rc, 0));
return static_cast<size_t>((std::max)(rc, 0));
}
#endif