am 72c36298: Use C++11 deleted functions to implement DISALLOW_ macros
* commit '72c362985cdafacfe9411aa700666bc0be556483': Use C++11 deleted functions to implement DISALLOW_ macrosmain
commit
5677793822
|
@ -352,13 +352,13 @@ template<typename T> AK_FORCE_INLINE const T &max(const T &a, const T &b) { retu
|
||||||
#define MIN_OUTPUT_INDEX_FOR_DEBUG (-1)
|
#define MIN_OUTPUT_INDEX_FOR_DEBUG (-1)
|
||||||
|
|
||||||
#define DISALLOW_DEFAULT_CONSTRUCTOR(TypeName) \
|
#define DISALLOW_DEFAULT_CONSTRUCTOR(TypeName) \
|
||||||
TypeName()
|
TypeName() = delete
|
||||||
|
|
||||||
#define DISALLOW_COPY_CONSTRUCTOR(TypeName) \
|
#define DISALLOW_COPY_CONSTRUCTOR(TypeName) \
|
||||||
TypeName(const TypeName&)
|
TypeName(const TypeName&) = delete
|
||||||
|
|
||||||
#define DISALLOW_ASSIGNMENT_OPERATOR(TypeName) \
|
#define DISALLOW_ASSIGNMENT_OPERATOR(TypeName) \
|
||||||
void operator=(const TypeName&)
|
void operator=(const TypeName&) = delete
|
||||||
|
|
||||||
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||||
DISALLOW_COPY_CONSTRUCTOR(TypeName); \
|
DISALLOW_COPY_CONSTRUCTOR(TypeName); \
|
||||||
|
|
Loading…
Reference in New Issue