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/NVMeSensor.hpp b/src/NVMeSensor.hpp
index 4e0000f..dfed215 100644
--- a/src/NVMeSensor.hpp
+++ b/src/NVMeSensor.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <sensor.hpp>
class NVMeSensor : public Sensor
@@ -9,7 +9,7 @@
static constexpr const char* sensorType = "NVME1000";
NVMeSensor(sdbusplus::asio::object_server& objectServer,
- boost::asio::io_service& io,
+ boost::asio::io_context& io,
std::shared_ptr<sdbusplus::asio::connection>& conn,
const std::string& sensorName,
std::vector<thresholds::Threshold>&& thresholds,