Browse Source

Fixed build error

yhirose 1 year ago
parent
commit
9ff3ff9446
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -356,7 +356,7 @@ struct case_ignore_equal {
 };
 };
 
 
 struct case_ignore_hash {
 struct case_ignore_hash {
-  constexpr size_t operator()(std::string_view key) const {
+  constexpr size_t operator()(const std::string &key) const {
     return hash_core(key.data(), key.size(), 0);
     return hash_core(key.data(), key.size(), 0);
   }
   }