hash operator() needs to be const
This commit is contained in:
parent
1abf3bb3ad
commit
62b0c2ecf7
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue