Problem: connected() is confusing

Solution: Deprecated it, it is not related to connect/disconnect.
This commit is contained in:
Gudmundur Adalsteinsson 2020-10-24 18:00:52 +00:00
parent 03243ad64d
commit d57ffc5cf7

View File

@ -1827,6 +1827,7 @@ class socket_base
throw error_t(); throw error_t();
} }
ZMQ_DEPRECATED("from 4.7.1, use handle() != nullptr or operator bool")
bool connected() const ZMQ_NOTHROW { return (_handle != ZMQ_NULLPTR); } bool connected() const ZMQ_NOTHROW { return (_handle != ZMQ_NULLPTR); }
ZMQ_CPP11_DEPRECATED("from 4.3.1, use send taking a const_buffer and send_flags") ZMQ_CPP11_DEPRECATED("from 4.3.1, use send taking a const_buffer and send_flags")