aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryurial <yurial@yandex-team.com>2024-09-03 09:51:36 +0300
committeryurial <yurial@yandex-team.com>2024-09-03 10:05:19 +0300
commit8e1b86ec67624bcc8399753f602bc2c5dc444d66 (patch)
treef4c8d303ecd8f2224a6ef0b445bde3c41e69a077
parent9f42e450e2f54f0b590107467d95aa7b055efd4a (diff)
downloadydb-8e1b86ec67624bcc8399753f602bc2c5dc444d66.tar.gz
Detect default implementation of THashHelper
4ef7a7a8f6c8008dc1203097922562c21bf12bfb
-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 5b0254bee9..b9d16a53b9 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>