Problem: missing use of C++11 = delete and = default

Solution: introduce macros ZMQ_DEFAULT and ZMQ_NON_COPYABLE_NOR_MOVABLE
This commit is contained in:
Simon Giesecke
2019-12-08 19:22:04 +01:00
committed by Simon Giesecke
parent 86d7de38ca
commit f60f909899
99 changed files with 178 additions and 269 deletions

View File

@@ -59,7 +59,7 @@ int pipepair (zmq::object_t *parents_[2],
struct i_pipe_events
{
virtual ~i_pipe_events () {}
virtual ~i_pipe_events () ZMQ_DEFAULT;
virtual void read_activated (zmq::pipe_t *pipe_) = 0;
virtual void write_activated (zmq::pipe_t *pipe_) = 0;
@@ -256,9 +256,7 @@ class pipe_t : public object_t,
// The endpoints of this pipe.
endpoint_uri_pair_t _endpoint_pair;
// Disable copying.
pipe_t (const pipe_t &);
const pipe_t &operator= (const pipe_t &);
ZMQ_NON_COPYABLE_NOR_MOVABLE (pipe_t)
};
void send_routing_id (pipe_t *pipe_, const options_t &options_);