diff options
-rw-r--r-- | lib/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |