Skip to content

Commit 78f91ad

Browse files
authored
Merge pull request #656 from cacharle/fix-std-max-compilation-error
Fix std::max compilation error on Windows
2 parents 21c83ca + a6035ca commit 78f91ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2753,7 +2753,7 @@ template<typename T = no_user_data> class poller_t
27532753
{
27542754
int rc = zmq_poller_size(const_cast<void *>(poller_ptr.get()));
27552755
ZMQ_ASSERT(rc >= 0);
2756-
return static_cast<size_t>(std::max(rc, 0));
2756+
return static_cast<size_t>((std::max)(rc, 0));
27572757
}
27582758
#endif
27592759

0 commit comments

Comments
 (0)