Open ghost opened 4 years ago
Due to an explicit cast "issue" in some CPPZMQ versions (https://github.com/zeromq/cppzmq/pull/81/commits/bd288a55c156ed099eef186834b305162c0e72bb) (i.e. it happend on Debian Stretch for me), nzmqt cannot compile using newer compilers.
Fix: Fix affects file: /include/nzmqt/impl.hpp Function: NZMQTINLINE void PollingZMQContext::registerSocket(ZMQSocket* socket)
Change: Force cast to void* when creating new pollitem: from: pollitemt pollItem = { *socket, 0, ZMQSocket::EVT_POLLIN, 0 }; to: pollitem_t pollItem = { staticcast<void>(socket), 0, ZMQSocket::EVT_POLLIN, 0 };
Due to an explicit cast "issue" in some CPPZMQ versions (https://github.com/zeromq/cppzmq/pull/81/commits/bd288a55c156ed099eef186834b305162c0e72bb) (i.e. it happend on Debian Stretch for me), nzmqt cannot compile using newer compilers.
Fix: Fix affects file: /include/nzmqt/impl.hpp Function: NZMQTINLINE void PollingZMQContext::registerSocket(ZMQSocket* socket)
Change: Force cast to void* when creating new pollitem: from: pollitemt pollItem = { *socket, 0, ZMQSocket::EVT_POLLIN, 0 }; to: pollitem_t pollItem = { staticcast<void>(socket), 0, ZMQSocket::EVT_POLLIN, 0 };