From d1796f881e1d9375f6604f93e2bd45489bdf011b Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Fri, 9 Feb 2018 20:34:42 +0900 Subject: [PATCH] Fixed Boost 1.66.0 compile errors. (#53) --- examples/async_timeout.cpp | 1 + src/redisclient/impl/redisclientimpl.h | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/async_timeout.cpp b/examples/async_timeout.cpp index 7421aa8..859113d 100644 --- a/examples/async_timeout.cpp +++ b/examples/async_timeout.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/src/redisclient/impl/redisclientimpl.h b/src/redisclient/impl/redisclientimpl.h index 11f1a84..16a9b4a 100644 --- a/src/redisclient/impl/redisclientimpl.h +++ b/src/redisclient/impl/redisclientimpl.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -53,8 +54,8 @@ class RedisClientImpl : public std::enable_shared_from_this { std::function msg)> msgHandler, std::function handler); - REDIS_CLIENT_DECL void unsubscribe(const std::string &command, - size_t handle_id, const std::string &channel, + REDIS_CLIENT_DECL void unsubscribe(const std::string &command, + size_t handle_id, const std::string &channel, std::function handler); REDIS_CLIENT_DECL void close() noexcept; @@ -90,7 +91,7 @@ class RedisClientImpl : public std::enable_shared_from_this { inline void post(const Handler &handler); boost::asio::io_service &ioService; - boost::asio::strand strand; + boost::asio::io_service::strand strand; boost::asio::generic::stream_protocol::socket socket; RedisParser redisParser; boost::array buf;