diff options
Diffstat (limited to '3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp')
-rw-r--r-- | 3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp b/3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp index e0a6af9df6f..b4e7ea602d7 100644 --- a/3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp +++ b/3rdparty/asio/src/examples/cpp03/services/daytime_client.cpp @@ -2,14 +2,14 @@ // daytime_client.cpp // ~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <asio.hpp> -#include <boost/bind.hpp> +#include <boost/bind/bind.hpp> #include <iostream> #include "logger.hpp" @@ -30,7 +30,9 @@ void read_handler(const asio::error_code& e, } else { - services::logger logger(s->get_executor().context(), "read_handler"); + asio::execution_context& context = asio::query( + s->get_executor(), asio::execution::context); + services::logger logger(context, "read_handler"); std::string msg = "Read error: "; msg += e.message(); @@ -40,7 +42,9 @@ void read_handler(const asio::error_code& e, void connect_handler(const asio::error_code& e, tcp::socket* s) { - services::logger logger(s->get_executor().context(), "connect_handler"); + asio::execution_context& context = asio::query( + s->get_executor(), asio::execution::context); + services::logger logger(context, "connect_handler"); if (!e) { |