Skip to content

Commit a6035ca

Browse files
authored
Fix std::max compilation error on Windows
Fixes #654
1 parent 21c83ca commit a6035ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq.hpp

Lines changed: 1 addition & 1 deletion
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)