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

Compilation issue on Debian Stretch due to explicit keyword in CPPZMQ #56

Open
ghost opened this issue Apr 20, 2020 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Apr 20, 2020

Due to an explicit cast "issue" in some CPPZMQ versions (zeromq/cppzmq@bd288a5) (i.e. it happend on Debian Stretch for me), nzmqt cannot compile using newer compilers.

Fix:
Fix affects file: /include/nzmqt/impl.hpp
Function: NZMQT_INLINE void PollingZMQContext::registerSocket(ZMQSocket* socket_)

Change: Force cast to void* when creating new pollitem:
from: pollitem_t pollItem = { socket_, 0, ZMQSocket::EVT_POLLIN, 0 };
to: pollitem_t pollItem = { static_cast<void
>(*socket_), 0, ZMQSocket::EVT_POLLIN, 0 };

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

0 participants