X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Ftest%2Fip%2Funicast.cpp;h=ad66d0cd7aa35e0a6471250a17f90f8b517ff88f;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=7e14b0dcc57707cd9e13cd13d04b219f06aeaffe;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/asio/test/ip/unicast.cpp b/ceph/src/boost/libs/asio/test/ip/unicast.cpp index 7e14b0dcc..ad66d0cd7 100644 --- a/ceph/src/boost/libs/asio/test/ip/unicast.cpp +++ b/ceph/src/boost/libs/asio/test/ip/unicast.cpp @@ -2,7 +2,7 @@ // unicast.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) @@ -16,7 +16,7 @@ // Test that header file is self-contained. #include -#include +#include #include #include "../unit_test.hpp" @@ -36,8 +36,8 @@ void test() try { - io_service ios; - ip::udp::socket sock(ios); + io_context ioc; + ip::udp::socket sock(ioc); // hops class. @@ -69,17 +69,17 @@ void test() using namespace boost::asio; namespace ip = boost::asio::ip; - io_service ios; + io_context ioc; boost::system::error_code ec; ip::udp::endpoint ep_v4(ip::address_v4::loopback(), 0); - ip::udp::socket sock_v4(ios); + ip::udp::socket sock_v4(ioc); sock_v4.open(ep_v4.protocol(), ec); sock_v4.bind(ep_v4, ec); bool have_v4 = !ec; ip::udp::endpoint ep_v6(ip::address_v6::loopback(), 0); - ip::udp::socket sock_v6(ios); + ip::udp::socket sock_v6(ioc); sock_v6.open(ep_v6.protocol(), ec); sock_v6.bind(ep_v6, ec); bool have_v6 = !ec;