I've been using Google's DISALLOW_COPY_AND_ASSIGN macro from their C++ Style Guide for a couple of months now, but it recently occurred to me that it would be useful to additionally disable the move constructor and move assignment.
I haven't written any real macros before (in fact, I've been trying to stay away from them as much as possible), so I'd like to get some feedback from the rest of you on whether I've implemented it correctly.
// Original Version
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
// Modified Version (no move semantics)
#define DISALLOW_COPY_MOVE_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&); \
TypeName(TypeName&&); \
void operator=(const TypeName&&)
Suggestions and criticism are very welcome.
Thanks for your time!