force delete of copy constructor and operator = (nw)

This commit is contained in:
Miodrag Milanovic 2015-12-03 15:54:13 +01:00
parent 016d610e37
commit 5232ca932a

View File

@ -193,8 +193,8 @@ const endianness_t ENDIANNESS_NATIVE = ENDIANNESS_BIG;
// macro for defining a copy constructor and assignment operator to prevent copying
#define DISABLE_COPYING(_Type) \
private: \
_Type(const _Type &); \
_Type &operator=(const _Type &)
_Type(const _Type &) = delete; \
_Type &operator=(const _Type &) = delete
// macro for declaring enumerator operators that increment/decrement like plain old C
#define DECLARE_ENUM_OPERATORS(_Type) \