From 3533503323b22e48ef4875ace082118e4b69949a Mon Sep 17 00:00:00 2001 From: bgs99 Date: Fri, 7 Jul 2023 20:17:19 +0300 Subject: [PATCH] Fix explicit constructor warning (#1614) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 9753439..e14bc7d 100644 --- a/httplib.h +++ b/httplib.h @@ -5275,7 +5275,7 @@ inline PathParamsMatcher::PathParamsMatcher(const std::string &pattern) { } inline bool PathParamsMatcher::match(Request &request) const { - request.matches = {}; + request.matches = std::smatch(); request.path_params.clear(); request.path_params.reserve(param_names_.size());