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/NVMeBasicContext.hpp b/src/NVMeBasicContext.hpp
index b17fc05..52b6a09 100644
--- a/src/NVMeBasicContext.hpp
+++ b/src/NVMeBasicContext.hpp
@@ -2,7 +2,7 @@
#include "NVMeContext.hpp"
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/posix/stream_descriptor.hpp>
#include <thread>
@@ -10,7 +10,7 @@
class NVMeBasicContext : public NVMeContext
{
public:
- NVMeBasicContext(boost::asio::io_service& io, int rootBus);
+ NVMeBasicContext(boost::asio::io_context& io, int rootBus);
~NVMeBasicContext() override = default;
void pollNVMeDevices() override;
void readAndProcessNVMeSensor() override;
@@ -18,9 +18,9 @@
size_t len) override;
private:
- NVMeBasicContext(boost::asio::io_service& io, int rootBus, int cmdOut,
+ NVMeBasicContext(boost::asio::io_context& io, int rootBus, int cmdOut,
int streamIn, int streamOut, int cmdIn);
- boost::asio::io_service& io;
+ boost::asio::io_context& io;
// The IO thread must be destructed after the stream descriptors, so
// initialise it first. http://eel.is/c++draft/class.base.init#note-6