hash operator() needs to be const

master
Daniel Kolesa 2017-01-30 19:30:49 +01:00
parent 1abf3bb3ad
commit 62b0c2ecf7
1 changed files with 2 additions and 2 deletions

View File

@ -683,14 +683,14 @@ namespace std {
template<>
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);
}
};
template<>
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);
}
};