@@ -214,7 +214,7 @@ class win_iocp_socket_service_base
214
214
template <typename ConstBufferSequence, typename Handler>
215
215
void async_send (base_implementation_type& impl,
216
216
const ConstBufferSequence& buffers,
217
- socket_base::message_flags flags, Handler handler)
217
+ socket_base::message_flags flags, Handler& handler)
218
218
{
219
219
// Allocate and construct an operation to wrap the handler.
220
220
typedef win_iocp_socket_send_op<ConstBufferSequence, Handler> op;
@@ -237,7 +237,7 @@ class win_iocp_socket_service_base
237
237
// Start an asynchronous wait until data can be sent without blocking.
238
238
template <typename Handler>
239
239
void async_send (base_implementation_type& impl, const null_buffers&,
240
- socket_base::message_flags, Handler handler)
240
+ socket_base::message_flags, Handler& handler)
241
241
{
242
242
// Allocate and construct an operation to wrap the handler.
243
243
typedef win_iocp_null_buffers_op<Handler> op;
@@ -281,7 +281,7 @@ class win_iocp_socket_service_base
281
281
template <typename MutableBufferSequence, typename Handler>
282
282
void async_receive (base_implementation_type& impl,
283
283
const MutableBufferSequence& buffers,
284
- socket_base::message_flags flags, Handler handler)
284
+ socket_base::message_flags flags, Handler& handler)
285
285
{
286
286
// Allocate and construct an operation to wrap the handler.
287
287
typedef win_iocp_socket_recv_op<MutableBufferSequence, Handler> op;
@@ -304,7 +304,7 @@ class win_iocp_socket_service_base
304
304
// Wait until data can be received without blocking.
305
305
template <typename Handler>
306
306
void async_receive (base_implementation_type& impl, const null_buffers&,
307
- socket_base::message_flags flags, Handler handler)
307
+ socket_base::message_flags flags, Handler& handler)
308
308
{
309
309
// Allocate and construct an operation to wrap the handler.
310
310
typedef win_iocp_null_buffers_op<Handler> op;
@@ -355,7 +355,7 @@ class win_iocp_socket_service_base
355
355
template <typename MutableBufferSequence, typename Handler>
356
356
void async_receive_with_flags (base_implementation_type& impl,
357
357
const MutableBufferSequence& buffers, socket_base::message_flags in_flags,
358
- socket_base::message_flags& out_flags, Handler handler)
358
+ socket_base::message_flags& out_flags, Handler& handler)
359
359
{
360
360
// Allocate and construct an operation to wrap the handler.
361
361
typedef win_iocp_socket_recvmsg_op<MutableBufferSequence, Handler> op;
@@ -378,7 +378,7 @@ class win_iocp_socket_service_base
378
378
template <typename Handler>
379
379
void async_receive_with_flags (base_implementation_type& impl,
380
380
const null_buffers&, socket_base::message_flags in_flags,
381
- socket_base::message_flags& out_flags, Handler handler)
381
+ socket_base::message_flags& out_flags, Handler& handler)
382
382
{
383
383
// Allocate and construct an operation to wrap the handler.
384
384
typedef win_iocp_null_buffers_op<Handler> op;
0 commit comments