summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authoryurial <[email protected]>2024-09-03 09:51:36 +0300
committeryurial <[email protected]>2024-09-03 10:05:19 +0300
commit8e1b86ec67624bcc8399753f602bc2c5dc444d66 (patch)
treef4c8d303ecd8f2224a6ef0b445bde3c41e69a077 /util
parent9f42e450e2f54f0b590107467d95aa7b055efd4a (diff)
Detect default implementation of THashHelper
4ef7a7a8f6c8008dc1203097922562c21bf12bfb
Diffstat (limited to 'util')
-rw-r--r--util/str_stl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index 5b0254bee9b..b9d16a53b99 100644
--- a/util/str_stl.h
+++ b/util/str_stl.h
@@ -37,6 +37,8 @@ namespace std {
namespace NHashPrivate {
template <class T, bool needNumericHashing>
struct THashHelper {
+ using is_default_implementation = std::true_type;
+
inline size_t operator()(const T& t) const noexcept {
return (size_t)t; // If you have a compilation error here, look at explanation below:
// Probably error is caused by undefined template specialization of THash<T>