]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/tutorial/timer3/timer.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / tutorial / timer3 / timer.cpp
index f99864034c515a014a308b6382126051429bcb2b..ab957c474f9e22b64d0aaf3a47b05fc8fd6d3bd5 100644 (file)
@@ -2,7 +2,7 @@
 // timer.cpp
 // ~~~~~~~~~
 //
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2017 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)
@@ -29,7 +29,7 @@ void print(const boost::system::error_code& /*e*/,
 
 int main()
 {
-  boost::asio::io_service io;
+  boost::asio::io_context io;
 
   int count = 0;
   boost::asio::deadline_timer t(io, boost::posix_time::seconds(1));