]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/spawn/echo_server.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / spawn / echo_server.cpp
index 6b60b46f4a16b7f9d67dee0fc7009ee99a1d0811..7752481423067df0392c11bfb60623421266f12a 100644 (file)
@@ -2,7 +2,7 @@
 // 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)
@@ -24,7 +24,7 @@ class session : public boost::enable_shared_from_this<session>
 {
 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)
   {
@@ -76,7 +76,7 @@ private:
     }
   }
 
-  boost::asio::io_context::strand strand_;
+  boost::asio::strand<boost::asio::io_context::executor_type> strand_;
   tcp::socket socket_;
   boost::asio::steady_timer timer_;
 };