浏览代码

Fix explicit constructor warning (#1614)

bgs99 2 年之前
父节点
当前提交
3533503323
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      httplib.h

+ 1 - 1
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());