diff --git a/httplib.h b/httplib.h index 3d9f0d4..71bba16 100644 --- a/httplib.h +++ b/httplib.h @@ -473,11 +473,10 @@ private: class Server { public: - typedef std::function Handler; - typedef std::function - HandlerWithContentReader; - typedef std::function Logger; + using Handler = std::function; + using HandlerWithContentReader = std::function; + using Logger = std::function; Server(); @@ -576,7 +575,7 @@ private: class Client { public: - Client(const char *host, int port = 80, time_t timeout_sec = 300); + explicit Client(const char *host, int port = 80, time_t timeout_sec = 300); virtual ~Client();