diff --git a/ostd/string.hh b/ostd/string.hh index 431e46f..cb18d3c 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -683,14 +683,14 @@ namespace std { template<> struct hash { - size_t operator()(ostd::CharRange const &v) { + size_t operator()(ostd::CharRange const &v) const { return hash{}(v); } }; template<> struct hash { - size_t operator()(ostd::CharRange const &v) { + size_t operator()(ostd::ConstCharRange const &v) const { return hash{}(v); } };