[zeromq-dev] Various Majordomo protocol versions

Brian T. Carcich briantcarcich at gmail.com
Fri Mar 13 12:11:26 CET 2020


I don't have time to be sure, and I don't have your code, but I think the
asterisks before [sock] and [eplt->get().sock] are turning (zmq::socket_t*)
*POINTERS* to zmq::socket_t class objects into (zmq::socket_t) class
objects, and the C++ compiler can cast the former into (void*) pointer, but
not the latter.

Best regards.

On Fri, Mar 13, 2020 at 1:23 AM SIMON BABY <simonkbaby at gmail.com> wrote:

> []...]
>
> *src/zipcpp.cpp:125:53: error: cannot convert ‘zmq::socket_t’ to ‘void*’
> in initialization*
>
> *     pollitem_t pollItem = { *sock, 0, ZMQ_POLLIN, 0 };*
>
> *    [...]*
>
> *src/zipcpp.cpp:380:69: error: cannot convert ‘zmq::socket_t’ to ‘void*’
> in initialization*
>
> *         pollitem_t pollItem = { *epIt->get().sock, 0, ZMQ_POLLIN, 0 };
> // no constructor for pollitem_t*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20200313/55cb5899/attachment.htm>


More information about the zeromq-dev mailing list