Boost version portability (1.74 to 1.63).
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user