From 9313a6e5608c439e80c7cb0db5c715bd6b1a831d Mon Sep 17 00:00:00 2001 From: IndignantAngel Date: Wed, 12 Oct 2016 17:31:00 +0800 Subject: [PATCH] bug fixed --- rest_rpc/server/ios_wrapper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_rpc/server/ios_wrapper.hpp b/rest_rpc/server/ios_wrapper.hpp index f4af093..aed9c8a 100644 --- a/rest_rpc/server/ios_wrapper.hpp +++ b/rest_rpc/server/ios_wrapper.hpp @@ -97,8 +97,8 @@ namespace timax { namespace rpc auto& conn_ptr = delay_messages.front().first; auto& ctx_ptr = delay_messages.front().second; - async_write(conn_ptr->socket(), ctx_ptr->get_message(), boost::bind( - &ios_wrapper::handle_write, this, std::move(delay_messages), asio_error)); + async_write(conn_ptr->socket(), ctx_ptr->get_message(), std::bind( + &ios_wrapper::handle_write, this, std::move(delay_messages), std::placeholders::_1)); } private: