From 62b0c2ecf78dcdb5ae0d09a9f7425dd466335b2d Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 30 Jan 2017 19:30:49 +0100 Subject: [PATCH] hash operator() needs to be const --- ostd/string.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } };