Move to io_context
io_context is the more modern version of io_service; io_service is
deprecated, and is a typedef for io_context.
Tested: Code compiles
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I920792ab5f61710bbe8f880277882bf2bec5f26a
diff --git a/dbus_raw_peci.cpp b/dbus_raw_peci.cpp
index 49e1c5d..cb47d20 100644
--- a/dbus_raw_peci.cpp
+++ b/dbus_raw_peci.cpp
@@ -15,13 +15,13 @@
*/
#include <peci.h>
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <iostream>
#include <sdbusplus/asio/object_server.hpp>
int main()
{
- boost::asio::io_service io;
+ boost::asio::io_context io;
std::shared_ptr<sdbusplus::asio::connection> conn;
std::shared_ptr<sdbusplus::asio::object_server> server;
@@ -79,4 +79,4 @@
io.run();
return 0;
-}
\ No newline at end of file
+}