Change io_service to io_context
This was renamed a while back in boost to be compliant with the
std::executors proposal.
Change-Id: Id8cda0486beed09984e570393921bd95835e5980
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/src/power_control.cpp b/src/power_control.cpp
index 6229251..1a89323 100644
--- a/src/power_control.cpp
+++ b/src/power_control.cpp
@@ -18,7 +18,7 @@
#include <sys/sysinfo.h>
#include <systemd/sd-journal.h>
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/posix/stream_descriptor.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/container/flat_map.hpp>
@@ -34,7 +34,7 @@
namespace power_control
{
-static boost::asio::io_service io;
+static boost::asio::io_context io;
std::shared_ptr<sdbusplus::asio::connection> conn;
PersistentState appState;
PowerRestoreController powerRestore(io);