mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 07:31:39 +02:00

Solution: Add `zmq::sockopt::socket_type` that is used to `get()` an enumerator from `zmq::socket_type` instead of plain `int`. It makes code like this compile: #include <zmq.hpp> #include <cassert> int main() { zmq::context_t ctx; zmq::socket_t sock(ctx, zmq::socket_type::push); assert(sock.get(zmq::sockopt::socket_type) == zmq::socket_type::push); return 0; }