zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.94k stars 757 forks source link

Add support for socket_ref to multipart_t ctor/send/recv #487

Closed barometz closed 3 years ago

barometz commented 3 years ago

This adds socket_ref support to multipart_t's constructor and send/recv member functions, resolving issue #448 . All previously took a socket_t& instead. I don't think this will break anything, but if preferred I can add alias functions for socket_t& back in.

sigiesec commented 3 years ago

This adds socket_ref support to multipart_t's constructor and send/recv member functions, resolving issue #448 . All previously took a socket_t& instead. I don't think this will break anything, but if preferred I can add alias functions for socket_t& back in.

Given the implicit socket_t::operator socket_ref I think it's fine to just change it. Thanks for the fix!