Boost version portability (1.74 to 1.63).

This commit is contained in:
Robin Davies
2021-08-23 23:11:33 -04:00
parent 8c239dc898
commit 0937c1a0f9
+4 -2
View File
@@ -119,11 +119,13 @@ private:
std::string response; std::string response;
public: public:
Reader(io_service &ios) template <typename T> // either execution_context (boost 1.74) or io_context (boost 1.63)
Reader(T &ios)
: socket(ios) : socket(ios)
{ {
} }
static std::shared_ptr<Reader> Create(io_service &ios) template <typename T> // either execution_context (boost 1.74) or io_context (boost 1.63)
static std::shared_ptr<Reader> Create(T &ios)
{ {
return std::make_shared<Reader>(ios); return std::make_shared<Reader>(ios);
} }