From 9ff3ff944663dcf52ad1ccc0de4bfa1ddd6c1f19 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 5 Sep 2024 12:27:50 -0400 Subject: [PATCH] Fixed build error --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index db5861a..f339475 100644 --- a/httplib.h +++ b/httplib.h @@ -356,7 +356,7 @@ struct case_ignore_equal { }; 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); }