diff --git a/src/string.hh b/src/string.hh index 64ee9992..0a8c0abb 100644 --- a/src/string.hh +++ b/src/string.hh @@ -116,15 +116,14 @@ std::vector split(const String& str, Character separator); namespace std { -template<> - inline size_t - hash::operator()(const Kakoune::String& str) const - { return str.hash(); } - -template<> - inline size_t - hash::operator()(Kakoune::String str) const - { return str.hash(); } + template<> + struct hash + { + size_t operator()(const Kakoune::String& str) const + { + return str.hash(); + } + }; } #endif // string_hh_INCLUDED