From 0937c1a0f91fa74bc8bfab9d14b4a99f4dd8598b Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Mon, 23 Aug 2021 23:11:33 -0400 Subject: [PATCH] Boost version portability (1.74 to 1.63). --- src/ShutdownMain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }