Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Apr 27, 2021

Conversation

barometz
Copy link
Contributor

@barometz barometz commented Apr 17, 2021

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.

@barometz barometz changed the title Issue #448: Add support for socket_ref to multipart_t ctor/send/recv Add support for socket_ref to multipart_t ctor/send/recv Apr 17, 2021
@barometz barometz marked this pull request as draft April 17, 2021 12:47
- use is_invocable and is_constructible instead of is_same
- Add message parameter for static_assert
@barometz barometz marked this pull request as ready for review April 17, 2021 13:22
@sigiesec
Copy link
Member

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!

@sigiesec sigiesec merged commit b65dde8 into zeromq:master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants