diff options
author | eeight <[email protected]> | 2022-04-07 11:33:15 +0300 |
---|---|---|
committer | eeight <[email protected]> | 2022-04-07 11:33:15 +0300 |
commit | a67b2a41b1807eb5d6c9eb77acbba297711cd0b2 (patch) | |
tree | 93d1ad678e114926c0a2beacfa8b70a86624a094 /util/str_stl.h | |
parent | 4d5dc0e55df42e1f407c2809485f9742e10e5509 (diff) |
Fix computation of hashes for string constants
ref:75452b050cafabe119c50e518c3db644d8d9404f
Diffstat (limited to 'util/str_stl.h')
-rw-r--r-- | util/str_stl.h | 8 |
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> { }; |