diff --git a/azmq/detail/receive_op.hpp b/azmq/detail/receive_op.hpp index cef7a4f..a918f6b 100644 --- a/azmq/detail/receive_op.hpp +++ b/azmq/detail/receive_op.hpp @@ -32,7 +32,7 @@ namespace detail { template class receive_buffer_op_base : public reactor_op { public: - receive_buffer_op_base(MutableBufferSequence const& buffers, flags_type flags) + receive_buffer_op_base(MutableBufferSequence& buffers, flags_type flags) : buffers_(buffers) , flags_(flags) { } @@ -51,7 +51,7 @@ class receive_buffer_op_base : public reactor_op { } private: - MutableBufferSequence buffers_; + MutableBufferSequence& buffers_; flags_type flags_; }; @@ -59,7 +59,7 @@ template class receive_buffer_op : public receive_buffer_op_base { public: - receive_buffer_op(MutableBufferSequence const& buffers, + receive_buffer_op(MutableBufferSequence& buffers, Handler handler, socket_ops::flags_type flags) : receive_buffer_op_base(buffers, flags) @@ -94,7 +94,7 @@ template class receive_more_buffer_op : public receive_buffer_op_base { public: - receive_more_buffer_op(MutableBufferSequence const& buffers, + receive_more_buffer_op(MutableBufferSequence& buffers, Handler handler, socket_ops::flags_type flags) : receive_buffer_op_base(buffers, flags) diff --git a/azmq/socket.hpp b/azmq/socket.hpp index 76c3733..25176fd 100644 --- a/azmq/socket.hpp +++ b/azmq/socket.hpp @@ -510,7 +510,7 @@ class socket : */ template - void async_receive(MutableBufferSequence const& buffers, + void async_receive(MutableBufferSequence& buffers, ReadHandler && handler, flags_type flags = 0) { using type = detail::receive_buffer_op; @@ -539,7 +539,7 @@ class socket : */ template - void async_receive_more(MutableBufferSequence const& buffers, + void async_receive_more(MutableBufferSequence& buffers, ReadMoreHandler && handler, flags_type flags = 0) { using type = detail::receive_more_buffer_op; @@ -712,7 +712,7 @@ struct async_send_initiation { template struct async_receive_initiation { azmq::socket &socket; - MutableBufferSequence const &buffers; + MutableBufferSequence &buffers; template void operator()(CompletionHandler &&completion_handler) { @@ -726,7 +726,7 @@ struct async_receive_initiation { template struct async_receive_more_initiation { azmq::socket &socket; - MutableBufferSequence const &buffers; + MutableBufferSequence &buffers; template void operator()(CompletionHandler &&completion_handler) { @@ -748,7 +748,7 @@ auto async_send(azmq::socket &socket, ConstBufferSequence const &buffers, } template -auto async_receive(azmq::socket &socket, MutableBufferSequence const &buffers, +auto async_receive(azmq::socket &socket, MutableBufferSequence &buffers, CompletionToken &&token) -> BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void(boost::system::error_code, size_t)) {