Change io_service to io_context
This was renamed a while back in boost to be compliant with the
std::executors proposal.
Change-Id: Ib56544a0a7478990d18fe9e0bbbd8db1e52fa5b8
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/src/ChassisIntrusionSensor.cpp b/src/ChassisIntrusionSensor.cpp
index f7e7783..44ce3ac 100644
--- a/src/ChassisIntrusionSensor.cpp
+++ b/src/ChassisIntrusionSensor.cpp
@@ -20,7 +20,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/object_server.hpp>
#include <cerrno>
@@ -361,7 +361,7 @@
}
ChassisIntrusionSensor::ChassisIntrusionSensor(
- boost::asio::io_service& io,
+ boost::asio::io_context& io,
std::shared_ptr<sdbusplus::asio::dbus_interface> iface) :
mIface(std::move(iface)),
mValue("unknown"), mOldValue("unknown"), mPollTimer(io), mGpioFd(io)