Browse Source

YT-19191: No custom char ptr comparators under the flag

No custom char ptr comparision under the flag
d9391318acda3af65dc490b6592d0555ac6cb170
nadya73 11 months ago
parent
commit
d9c07414fe
1 changed files with 4 additions and 0 deletions
  1. 4 0
      util/str_stl.h

+ 4 - 0
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 {