From fede599f1ab0896cb900a2eb2777e3290c31a3fe Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Thu, 22 Feb 2018 11:15:00 +0100 Subject: [PATCH] Mark second constructor for RespClient as explicit. --- include/resply.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/resply.h b/include/resply.h index b844bf7..b4c341b 100644 --- a/include/resply.h +++ b/include/resply.h @@ -74,7 +74,7 @@ namespace resply { * The ":port" component may be omitted, in which case it defaults to "6379". * \param timeout Timeout in milliseconds when connecting to server. Default are 500ms. */ - Client(const std::string& address, size_t timeout=500); + explicit Client(const std::string& address, size_t timeout=500); /*! \brief Constructs a new redis client. * \param host Redis server address.