]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/tutorial/timer2/timer.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / tutorial / timer2 / timer.cpp
index 9ce5a23a6997d3283e6f8ccf41d7b80d16cb6500..6a595975a3c9cecadb1b0977ed243c19d63cc7b9 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)
@@ -19,7 +19,7 @@ void print(const boost::system::error_code& /*e*/)
 
 int main()
 {
-  boost::asio::io_service io;
+  boost::asio::io_context io;
 
   boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));
   t.async_wait(&print);