diff --git a/src/ShutdownMain.cpp b/src/ShutdownMain.cpp index 92962cd..f71672c 100644 --- a/src/ShutdownMain.cpp +++ b/src/ShutdownMain.cpp @@ -119,11 +119,13 @@ private: std::string response; public: - Reader(io_service &ios) + template // either execution_context (boost 1.74) or io_context (boost 1.63) + Reader(T &ios) : socket(ios) { } - static std::shared_ptr Create(io_service &ios) + template // either execution_context (boost 1.74) or io_context (boost 1.63) + static std::shared_ptr Create(T &ios) { return std::make_shared(ios); }