projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Disable enum type stream operators for Qt >= 5.14
[quassel.git]
/
src
/
common
/
types.h
diff --git
a/src/common/types.h
b/src/common/types.h
index
d3742b7
..
e2a9aab
100644
(file)
--- a/
src/common/types.h
+++ b/
src/common/types.h
@@
-195,6
+195,7
@@
Q_DECLARE_METATYPE(QHostAddress)
using MsgIdList = QList<MsgId>;
using BufferIdList = QList<BufferId>;
using MsgIdList = QList<MsgId>;
using BufferIdList = QList<BufferId>;
+#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
/**
* Catch-all stream serialization operator for enum types.
*
/**
* Catch-all stream serialization operator for enum types.
*
@@
-224,6
+225,7
@@
QDataStream& operator>>(QDataStream& in, T& value)
value = static_cast<T>(v);
return in;
}
value = static_cast<T>(v);
return in;
}
+#endif
// STL-compliant hash functor for Qt types
template<typename T>
// STL-compliant hash functor for Qt types
template<typename T>