diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-12-04 10:57:58 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-12-04 11:47:10 +0100 |
commit | 27f5003b15e1629fe1f8103d0e088829603b6de9 (patch) | |
tree | f740bfa996ba4c2df307a007ea0062c6c915c2f1 /vespalib | |
parent | 555200c6f53a4ddb579181cac50a950c5647d854 (diff) |
Remove unneeded operators for string compare.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/stllike/string.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/string.h b/vespalib/src/vespa/vespalib/stllike/string.h index 1ca0ef1da77..05b04575ec1 100644 --- a/vespalib/src/vespa/vespalib/stllike/string.h +++ b/vespalib/src/vespa/vespalib/stllike/string.h @@ -631,6 +631,7 @@ template<uint32_t StackSize> small_string<StackSize> operator + (const char * a, const small_string<StackSize> & b); +#if __cplusplus < 201709L || (!defined(__clang__) && defined(__GNUC__) && __GNUC__ < 10) template<typename T, uint32_t StackSize> bool operator == (const T& a, const small_string<StackSize>& b) noexcept @@ -644,6 +645,7 @@ operator != (const T& a, const small_string<StackSize>& b) noexcept { return b != a; } +#endif template<typename T, uint32_t StackSize> bool |