From 637a3c252416bf44e640c92d41a4467291e5b6e7 Mon Sep 17 00:00:00 2001 From: delphi Date: Sat, 27 Jun 2020 11:27:28 +0300 Subject: [PATCH] A hack for boost 1.70.1 Signed-off-by: delphi --- include/belle.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/belle.hh b/include/belle.hh index 3a0e8b7..2319047 100644 --- a/include/belle.hh +++ b/include/belle.hh @@ -1414,8 +1414,9 @@ private: Websocket(tcp::socket&& socket_, std::shared_ptr const attr_, Request&& req_, fns_on_websocket const& on_websocket_) : - Websocket_Base {socket_.get_executor().context(), attr_, - std::move(req_), on_websocket_}, + Websocket_Base { + static_cast(socket_.get_executor().context()), + attr_, std::move(req_), on_websocket_}, _socket {std::move(socket_)} { } @@ -2019,7 +2020,8 @@ private: public: Http(tcp::socket socket_, std::shared_ptr const attr_) : - Http_Base {socket_.get_executor().context(), attr_}, + Http_Base { + static_cast(socket_.get_executor().context()), attr_}, _socket {std::move(socket_)} { }