hash operator() needs to be const

This commit is contained in:
q66 2017-01-30 19:30:49 +01:00
parent 1abf3bb3ad
commit 62b0c2ecf7

View file

@ -683,14 +683,14 @@ namespace std {
template<> template<>
struct hash<ostd::CharRange> { struct hash<ostd::CharRange> {
size_t operator()(ostd::CharRange const &v) { size_t operator()(ostd::CharRange const &v) const {
return hash<std::string_view>{}(v); return hash<std::string_view>{}(v);
} }
}; };
template<> template<>
struct hash<ostd::ConstCharRange> { struct hash<ostd::ConstCharRange> {
size_t operator()(ostd::CharRange const &v) { size_t operator()(ostd::ConstCharRange const &v) const {
return hash<std::string_view>{}(v); return hash<std::string_view>{}(v);
} }
}; };