summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qcborarray.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-07-25 19:04:20 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-07-29 19:09:14 +0000
commit1555894dec537cbc422f43fe959b0d0ee0000881 (patch)
treef85d631b50dc0eee45ac88d6730e2a08b9e2f5cf /src/corelib/serialization/qcborarray.h
parentbd0279c4173eb627d432d9a05411bbc725240d4e (diff)
QCborValue: Disable support for spaceship operator
__has_include(<compare>) is not the correct way to detect this feature, since that's a library header and may be provided by an implementation (libc++) before the compiler supports the syntax. Change-Id: I80aae0d068974d83b6c0fffd1544c8e558e2446b Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/serialization/qcborarray.h')
-rw-r--r--src/corelib/serialization/qcborarray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qcborarray.h b/src/corelib/serialization/qcborarray.h
index 98f409958a..4e9f7cf9b5 100644
--- a/src/corelib/serialization/qcborarray.h
+++ b/src/corelib/serialization/qcborarray.h
@@ -207,7 +207,7 @@ public:
bool contains(const QCborValue &value) const;
int compare(const QCborArray &other) const noexcept Q_DECL_PURE_FUNCTION;
-#if QT_HAS_INCLUDE(<compare>)
+#if 0 && QT_HAS_INCLUDE(<compare>)
std::strong_ordering operator<=>(const QCborArray &other) const
{
int c = compare(other);