summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2024-04-03 00:47:01 +0200
committerAlbert Astals Cid <aacid@kde.org>2024-04-03 12:53:53 +0200
commit699ddcb15b5e981d32ea65d1c1a12f8fa0b06e0d (patch)
tree193a087ca34ac86af48e46e0ec3d45852937b12b /src
parentf2159d71313cca1d27a9c30da8e7709ea23320e2 (diff)
Use ifdef instead of if for __cpp_lib_span
Like the other times it's used in this file This is causing compilation errors in projects that use -Werror=undef Fixes: QTBUG-123937 Pick-to: 6.7 Change-Id: I0cdd2910755dc9079890011dd8dbc27a6e64793e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qspan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qspan.h b/src/corelib/tools/qspan.h
index c9de1005a77..d6ae2570ae3 100644
--- a/src/corelib/tools/qspan.h
+++ b/src/corelib/tools/qspan.h
@@ -297,7 +297,7 @@ public:
: QSpanBase(il.begin(), il.size())
{}
-#if __cpp_lib_span
+#ifdef __cpp_lib_span
template <typename S, size_t N, if_qualification_conversion<S> = true>
Q_IMPLICIT constexpr QSpanBase(std::span<S, N> other) noexcept
: QSpanBase(other.data(), other.size())