aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornadya73 <nadya73@yandex-team.com>2024-04-01 14:59:30 +0300
committernadya73 <nadya73@yandex-team.com>2024-04-01 15:09:43 +0300
commitd9c07414fe1818299ba6f48fed65d93b6fcd1abb (patch)
tree9d634bc3ff32a2cc28eecc33cf452425d4ef2101
parent1b6d5a6a656fba924c17fac26ffecedf5f667a37 (diff)
downloadydb-d9c07414fe1818299ba6f48fed65d93b6fcd1abb.tar.gz
YT-19191: No custom char ptr comparators under the flag
No custom char ptr comparision under the flag d9391318acda3af65dc490b6592d0555ac6cb170
-rw-r--r--util/str_stl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index 7806bb2255..5b0254bee9 100644
--- a/util/str_stl.h
+++ b/util/str_stl.h
@@ -11,6 +11,8 @@
#include <typeindex>
#include <utility>
+#ifndef NO_CUSTOM_CHAR_PTR_STD_COMPARATOR
+
namespace std {
template <>
struct less<const char*> {
@@ -30,6 +32,8 @@ namespace std {
};
}
+#endif
+
namespace NHashPrivate {
template <class T, bool needNumericHashing>
struct THashHelper {