Mark second constructor for RespClient as explicit.

This commit is contained in:
Christoph Heiss 2018-02-22 11:15:00 +01:00
parent 60e8cf208b
commit fede599f1a

View file

@ -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.