Преглед на файлове

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