| 572 | |
| 573 | ZMQ_DEPRECATED("from 4.3.1, use copy taking non-const reference instead") |
| 574 | void copy(message_t const *msg_) |
| 575 | { |
| 576 | int rc = zmq_msg_copy(&msg, const_cast<zmq_msg_t *>(msg_->handle())); |
| 577 | if (rc != 0) |
| 578 | throw error_t(); |
| 579 | } |
| 580 | |
| 581 | void copy(message_t &msg_) |
| 582 | { |