From c9a13d214b9276f0ac26edbcba0439c28d8cb3a0 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 17 Dec 2020 18:48:27 -0500 Subject: [PATCH] Changed not to use string_view --- httplib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplib.h b/httplib.h index 57be20b..1430e10 100644 --- a/httplib.h +++ b/httplib.h @@ -2142,8 +2142,8 @@ inline constexpr unsigned int str2tag_core(const char *s, size_t l, (h * 33) ^ static_cast(*s)); } -inline constexpr unsigned int str2tag(std::string_view sv) { - return str2tag_core(sv.data(), sv.size(), 0); +inline constexpr unsigned int str2tag(const std::string &s) { + return str2tag_core(s.data(), s.size(), 0); } namespace udl {