1 class fun 2 { 3 fun(); 4 5 fun& operator=(fun&) = delete; // 不允许=号运算符重载 6 fun(const fun&) = delete; // 不允许拷贝构造 7 }