Skip to content

Commit 6c91034

Browse files
authored
Merge pull request #104 from laplaceyang/pr_remove_zmq_send_const
misuse of zmq_send_const
2 parents 3431f68 + eff9bcb commit 6c91034

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

zmq.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,7 @@ namespace zmq
624624

625625
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
626626
{
627-
#if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 0, 8)
628-
int nbytes = zmq_send_const (ptr, buf_, len_, flags_);
629-
#else
630627
int nbytes = zmq_send (ptr, buf_, len_, flags_);
631-
#endif
632628
if (nbytes >= 0)
633629
return (size_t) nbytes;
634630
if (zmq_errno () == EAGAIN)

0 commit comments

Comments
 (0)