Merge pull request #458 from gummif/gfa/depr-connected

Problem: connected() is confusing
This commit is contained in:
Simon Giesecke 2020-11-25 09:51:12 +01:00 committed by GitHub
commit e80cefa1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")