aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index 28315429..78d90626 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -35,6 +35,11 @@
#define FALLTHROUGH // -fallthrough
#endif
+// Along the lines of Q_DISABLE_COPY
+#define DISABLE_MOVE(_ClassName) \
+ _ClassName(_ClassName&&) Q_DECL_EQ_DELETE; \
+ _ClassName& operator=(_ClassName&&) Q_DECL_EQ_DELETE;
+
namespace QMatrixClient
{
// The below enables pretty-printing of enums in logs