aboutsummaryrefslogtreecommitdiff
path: root/lib/quotient_common.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-28 17:08:10 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-28 17:08:10 +0100
commit1747575321cda4fc11f90c2ffb2148a69d0d9946 (patch)
tree6acd5b8ed227d0cf96c5345e53bc15ecd7fcc7fc /lib/quotient_common.h
parent08612cb253417fe70ef45a1ad08663a0745d748a (diff)
downloadlibquotient-1747575321cda4fc11f90c2ffb2148a69d0d9946.tar.gz
libquotient-1747575321cda4fc11f90c2ffb2148a69d0d9946.zip
QUO_IMPLICIT
Because Apple Clang choked on `explicit(false)`.
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r--lib/quotient_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h
index 02a9f0cd..b3fb3efa 100644
--- a/lib/quotient_common.h
+++ b/lib/quotient_common.h
@@ -25,6 +25,13 @@
Q_ENUM_NS_IMPL(Enum) \
Q_FLAG_NS(Flags)
+// Apple Clang hasn't caught up with explicit(bool) yet
+#if __cpp_conditional_explicit >= 201806L
+#define QUO_IMPLICIT explicit(false)
+#else
+#define QUO_IMPLICIT
+#endif
+
#define DECL_DEPRECATED_ENUMERATOR(Deprecated, Recommended) \
Deprecated Q_DECL_ENUMERATOR_DEPRECATED_X("Use " #Recommended) = Recommended