diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-07-25 19:04:20 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-07-29 19:09:14 +0000 |
commit | 1555894dec537cbc422f43fe959b0d0ee0000881 (patch) | |
tree | f85d631b50dc0eee45ac88d6730e2a08b9e2f5cf /src/corelib/serialization/qcbormap.h | |
parent | bd0279c4173eb627d432d9a05411bbc725240d4e (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/qcbormap.h')
-rw-r--r-- | src/corelib/serialization/qcbormap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qcbormap.h b/src/corelib/serialization/qcbormap.h index 02c2ec086d..2e9422cf94 100644 --- a/src/corelib/serialization/qcbormap.h +++ b/src/corelib/serialization/qcbormap.h @@ -233,7 +233,7 @@ public: { const_iterator it = find(key); return it != end(); } int compare(const QCborMap &other) const noexcept Q_DECL_PURE_FUNCTION; -#if QT_HAS_INCLUDE(<compare>) +#if 0 && QT_HAS_INCLUDE(<compare>) std::strong_ordering operator<=>(const QCborMap &other) const { int c = compare(other); |