mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
‘constexpr’ error (#1918)
httplib.h: In member function ‘constexpr size_t httplib::detail::case_ignore_hash::operator()(const string&) const’: httplib.h:359:30: error: call to non-‘constexpr’ function ‘const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ 359 | return hash_core(key.data(), key.size(), 0);
This commit is contained in:
parent
eb6f610a45
commit
2480c0342c
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ struct case_ignore_equal {
|
|||
};
|
||||
|
||||
struct case_ignore_hash {
|
||||
constexpr size_t operator()(const std::string &key) const {
|
||||
size_t operator()(const std::string &key) const {
|
||||
return hash_core(key.data(), key.size(), 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue