summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/stllike/string.h2
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