The only defined error code for zmq_close() is ENOTSOCK
which indicates an error in cppzmq implementation.
It's ok to use assert here instead of throw.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Added a C++11 move constructor and move assignment operator to zmq::socket_t
and zmq::context_t. These functions are only enabled if the compiler supports
C++11 rvalue references. Currently the code can detect rvalue reference
support for the following compilers: GCC, MSVC, clang.
Signed-off-by: Botond Ballo <botond.ballo@gmail.com>
Copyrights and project name adjusted
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>