Skip to content

Commit 404b972

Browse files
committed
reduce copy
1 parent 28c7c8c commit 404b972

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
@@ -622,7 +622,7 @@ namespace zmq
622622

623623
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
624624
{
625-
int nbytes = zmq_send (ptr, buf_, len_, flags_);
625+
int nbytes = zmq_send_const (ptr, buf_, len_, flags_);
626626
if (nbytes >= 0)
627627
return (size_t) nbytes;
628628
if (zmq_errno () == EAGAIN)

0 commit comments

Comments
 (0)