From ca71f18a6da7b6c20b8bd026a6a8d59b67527372 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 23 Jul 2014 13:48:47 -0700 Subject: [PATCH] Make bind_handler variadic ctor explicit --- beast/asio/bind_handler.h | 1 + beast/module/asio/basics/SSLContext.h | 1 + beast/module/asio/basics/SharedArg.h | 2 ++ 3 files changed, 4 insertions(+) diff --git a/beast/asio/bind_handler.h b/beast/asio/bind_handler.h index 778b37230e..968fb86207 100644 --- a/beast/asio/bind_handler.h +++ b/beast/asio/bind_handler.h @@ -56,6 +56,7 @@ private: public: typedef void result_type; + explicit bound_handler (DeducedHandler&& handler, Args&&... args) : m_handler (std::forward (handler)) , m_args (std::forward (args)...) diff --git a/beast/module/asio/basics/SSLContext.h b/beast/module/asio/basics/SSLContext.h index 847927cb65..8310914aa3 100644 --- a/beast/module/asio/basics/SSLContext.h +++ b/beast/module/asio/basics/SSLContext.h @@ -20,6 +20,7 @@ #ifndef BEAST_ASIO_BASICS_SSLCONTEXT_H_INCLUDED #define BEAST_ASIO_BASICS_SSLCONTEXT_H_INCLUDED +#include #include namespace beast { diff --git a/beast/module/asio/basics/SharedArg.h b/beast/module/asio/basics/SharedArg.h index cac7e86f25..7e2163626c 100644 --- a/beast/module/asio/basics/SharedArg.h +++ b/beast/module/asio/basics/SharedArg.h @@ -20,6 +20,8 @@ #ifndef BEAST_ASIO_SHAREDARG_H_INCLUDED #define BEAST_ASIO_SHAREDARG_H_INCLUDED +#include + namespace beast { namespace asio {