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: