mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Changed not to use string_view
This commit is contained in:
parent
0954af2d4c
commit
c9a13d214b
1 changed files with 2 additions and 2 deletions
|
@ -2142,8 +2142,8 @@ inline constexpr unsigned int str2tag_core(const char *s, size_t l,
|
|||
(h * 33) ^ static_cast<unsigned char>(*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 {
|
||||
|
|
Loading…
Reference in a new issue