diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-04 12:24:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 12:24:35 +0100 |
commit | e697f1bed3e4d8467b718d863a514c4a5e0e77f5 (patch) | |
tree | 87fe10b57572bfe4539feeddf75b93f0f3358913 /vespalib | |
parent | 8357f3f8524578b3ca5682f1d56f13dbcae78551 (diff) | |
parent | 27f5003b15e1629fe1f8103d0e088829603b6de9 (diff) |
Merge pull request #15667 from vespa-engine/toregge/remove-unneeded-operators-for-string-compare
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 |