mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-12-24 06:14:34 +01:00
Merge pull request #130 from a4z/movector
Problem: uninitialized context pointer in socket_t move constructor
This commit is contained in:
7
zmq.hpp
7
zmq.hpp
@@ -506,9 +506,12 @@ namespace zmq
|
||||
#endif
|
||||
|
||||
#ifdef ZMQ_HAS_RVALUE_REFS
|
||||
inline socket_t(socket_t&& rhs) ZMQ_NOTHROW : ptr(rhs.ptr)
|
||||
inline socket_t(socket_t&& rhs) ZMQ_NOTHROW :
|
||||
ptr(rhs.ptr),
|
||||
ctxptr(rhs.ctxptr)
|
||||
{
|
||||
rhs.ptr = NULL;
|
||||
rhs.ptr = NULL;
|
||||
rhs.ctxptr = NULL;
|
||||
}
|
||||
inline socket_t& operator=(socket_t&& rhs) ZMQ_NOTHROW
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user