summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qalgorithms.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-15 11:01:36 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-15 11:32:09 +0200
commitaaa7ab5222dee55cbd8c1bf180f8928888492a6b (patch)
tree21b8cbf2b0185e5ce68ee01d43ce8984d42270fb /src/corelib/tools/qalgorithms.h
parent588cbca5b77e507de08cd23a63d23edd4f45b22e (diff)
Only include <bit> if using post C++17
Otherwise we hit an #error statement in MSVC standard library. Change-Id: Ib029edf0be8513a80f2640fd9ca75541615a0448 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/tools/qalgorithms.h')
-rw-r--r--src/corelib/tools/qalgorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h
index 58709f7fdf..11e4d9da39 100644
--- a/src/corelib/tools/qalgorithms.h
+++ b/src/corelib/tools/qalgorithms.h
@@ -42,7 +42,7 @@
#include <QtCore/qglobal.h>
-#if __has_include(<bit>)
+#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif