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_)} { }