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/PSUEvent.hpp b/src/PSUEvent.hpp
index 12fc2ef..3e066cf 100644
--- a/src/PSUEvent.hpp
+++ b/src/PSUEvent.hpp
@@ -18,7 +18,7 @@
#include "Utils.hpp"
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/random_access_file.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/container/flat_map.hpp>
@@ -36,7 +36,7 @@
PSUSubEvent(std::shared_ptr<sdbusplus::asio::dbus_interface> eventInterface,
const std::string& path,
std::shared_ptr<sdbusplus::asio::connection>& conn,
- boost::asio::io_service& io, const PowerState& powerState,
+ boost::asio::io_context& io, const PowerState& powerState,
const std::string& groupEventName, const std::string& eventName,
std::shared_ptr<std::set<std::string>> asserts,
std::shared_ptr<std::set<std::string>> combineEvent,
@@ -81,7 +81,7 @@
PSUCombineEvent(
sdbusplus::asio::object_server& objectServer,
std::shared_ptr<sdbusplus::asio::connection>& conn,
- boost::asio::io_service& io, const std::string& psuName,
+ boost::asio::io_context& io, const std::string& psuName,
const PowerState& powerState,
boost::container::flat_map<std::string, std::vector<std::string>>&
eventPathList,