Skip to content

Commit 2480c03

Browse files
authored
‘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);
1 parent eb6f610 commit 2480c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ struct case_ignore_equal {
355355
};
356356

357357
struct case_ignore_hash {
358-
constexpr size_t operator()(const std::string &key) const {
358+
size_t operator()(const std::string &key) const {
359359
return hash_core(key.data(), key.size(), 0);
360360
}
361361

0 commit comments

Comments
 (0)