We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ee8261 + d3abe06 commit 0f8601cCopy full SHA for 0f8601c
zmq.hpp
@@ -644,6 +644,7 @@ class context_t
644
context_t(context_t &&rhs) ZMQ_NOTHROW : ptr(rhs.ptr) { rhs.ptr = ZMQ_NULLPTR; }
645
context_t &operator=(context_t &&rhs) ZMQ_NOTHROW
646
{
647
+ close();
648
std::swap(ptr, rhs.ptr);
649
return *this;
650
}
@@ -1566,6 +1567,7 @@ class socket_t : public detail::socket_base
1566
1567
1568
socket_t &operator=(socket_t &&rhs) ZMQ_NOTHROW
1569
1570
1571
std::swap(_handle, rhs._handle);
1572
1573
0 commit comments