#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&){} \
void operator=(const TypeName&){};
C++ 宏定义禁止复制构造函数和赋值函数
最新推荐文章于 2021-09-17 17:32:40 发布
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&){} \
void operator=(const TypeName&){};