diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h index 62f80c76..524a4bdc 100644 --- a/include/spdlog/details/tcp_client-windows.h +++ b/include/spdlog/details/tcp_client-windows.h @@ -113,7 +113,7 @@ public: } // try to connect or throw on failure - void connect(const std::string &host, int port, int timeout_ms) { + void connect(const std::string &host, int port, int timeout_ms = 0) { if (is_connected()) { close(); }