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

socket send and receive deprecated warnings #230

Open
williamleong opened this issue Jan 13, 2020 · 1 comment
Open

socket send and receive deprecated warnings #230

williamleong opened this issue Jan 13, 2020 · 1 comment

Comments

@williamleong
Copy link

What is the reason for the comment "Unable to use message wrapper as this could be multipart legacy fallback" in socket.cpp? If this is required to support legacy code, then perhaps the deprecation warning should be removed.

zmqpp/src/zmqpp/socket.cpp:122:9: warning: 'send' is deprecated: "prefer using zmqpp::message for multipart messages" [-Wdeprecated-declarations]
        return send(str, (dont_block) ? socket::dont_wait : socket::normal);
               ^
zmqpp/src/zmqpp/socket.hpp:291:2: note: 'send' has been explicitly marked deprecated here
        ZMQPP_DEPRECATED("prefer using zmqpp::message for multipart messages")
        ^
zmqpp/src/zmqpp/compatibility.hpp:112:36: note: expanded from macro 'ZMQPP_DEPRECATED'
#define ZMQPP_DEPRECATED(reason) [[deprecated(#reason)]]
                                   ^
zmqpp/src/zmqpp/socket.cpp:128:9: warning: 'receive' is deprecated: "prefer using zmqpp::message for multipart messages" [-Wdeprecated-declarations]
        return receive(str, (dont_block) ? socket::dont_wait : socket::normal);
               ^
zmqpp/src/zmqpp/socket.hpp:306:2: note: 'receive' has been explicitly marked deprecated here
        ZMQPP_DEPRECATED("prefer using zmqpp::message for multipart messages")
        ^
zmqpp/src/zmqpp/compatibility.hpp:112:36: note: expanded from macro 'ZMQPP_DEPRECATED'
#define ZMQPP_DEPRECATED(reason) [[deprecated(#reason)]]

@alvinxieqiaochu
Copy link

alvinxieqiaochu commented Jun 17, 2021

hello, i met the same problem, have you fix that?

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

No branches or pull requests

2 participants