summaryrefslogtreecommitdiffstats
path: root/util/str_stl.h
diff options
context:
space:
mode:
authoreeight <[email protected]>2022-04-07 11:33:15 +0300
committereeight <[email protected]>2022-04-07 11:33:15 +0300
commita67b2a41b1807eb5d6c9eb77acbba297711cd0b2 (patch)
tree93d1ad678e114926c0a2beacfa8b70a86624a094 /util/str_stl.h
parent4d5dc0e55df42e1f407c2809485f9742e10e5509 (diff)
Fix computation of hashes for string constants
ref:75452b050cafabe119c50e518c3db644d8d9404f
Diffstat (limited to 'util/str_stl.h')
-rw-r--r--util/str_stl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index f1e137181d2..7806bb22554 100644
--- a/util/str_stl.h
+++ b/util/str_stl.h
@@ -76,11 +76,19 @@ template <>
struct hash<const char*>: ::NHashPrivate::TStringHash<char> {
};
+template <size_t n>
+struct hash<char[n]>: ::NHashPrivate::TStringHash<char> {
+};
+
template <>
struct THash<TStringBuf>: ::NHashPrivate::TStringHash<char> {
};
template <>
+struct THash<std::string_view>: ::NHashPrivate::TStringHash<char> {
+};
+
+template <>
struct hash<TString>: ::NHashPrivate::TStringHash<char> {
};