From c7d104d2d3f384644b767a4d7db5a2e997eccbc3 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Wed, 2 Jan 2019 14:15:50 -0800 Subject: Move asio interfaces away from deprecated names The intent of this commit is to allow building asio based event loops in applications with BOOST_ASIO_NO_DEPRECATED flag set. This change is largely a sed replace of io_service with io_context. This will allow us to move to the networking TS at such time that it is mature. Details on depreated interfaces are available here for reference: https://www.boost.org/doc/libs/1_69_0/doc/html/boost_asio/net_ts.html Change-Id: Ie3cc699effcf855a649dee5bfce2f6616109429b Signed-off-by: Ed Tanous --- example/asio-example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/asio-example.cpp') diff --git a/example/asio-example.cpp b/example/asio-example.cpp index 29b605f..61916a5 100644 --- a/example/asio-example.cpp +++ b/example/asio-example.cpp @@ -174,7 +174,7 @@ void do_start_async_to_yield(std::shared_ptr conn, int server() { // setup connection to dbus - boost::asio::io_service io; + boost::asio::io_context io; auto conn = std::make_shared(io); // test object server @@ -254,7 +254,7 @@ int client() using message = sdbusplus::message::message; // setup connection to dbus - boost::asio::io_service io; + boost::asio::io_context io; auto conn = std::make_shared(io); int ready = 0; -- cgit v1.2.3