]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/icmp/ping.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / icmp / ping.cpp
index b9a1c764244f9fa14cb2a596b274f35b2a63c9ba..7a3bfea21cf3ad3bb449d75d5f39b32862adb337 100644 (file)
@@ -2,14 +2,14 @@
 // ping.cpp
 // ~~~~~~~~
 //
-// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2020 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 <boost/asio.hpp>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
 #include <istream>
 #include <iostream>
 #include <ostream>
@@ -79,7 +79,7 @@ private:
 
     // Wait for a reply. We prepare the buffer to receive up to 64KB.
     socket_.async_receive(reply_buffer_.prepare(65536),
-        boost::bind(&pinger::handle_receive, this, _2));
+        boost::bind(&pinger::handle_receive, this, boost::placeholders::_2));
   }
 
   void handle_receive(std::size_t length)