// echo_server.cpp
// ~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2019 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)
{
public:
explicit session(boost::asio::io_context& io_context)
- : strand_(io_context),
+ : strand_(boost::asio::make_strand(io_context)),
socket_(io_context),
timer_(io_context)
{
}
}
- boost::asio::io_context::strand strand_;
+ boost::asio::strand<boost::asio::io_context::executor_type> strand_;
tcp::socket socket_;
boost::asio::steady_timer timer_;
};