CPlusPlusThings/learn_class/modern_cpp_30/literalAssert/default_delete.cpp

18 lines
258 B
C++

//
// Created by light on 19-12-25.
//
class myFun {
public:
myFun() = default;
myFun(const myFun &) = default;
myFun &operator=(const myFun &) = default;
myFun(myFun &&) = delete;
myFun &operator=(myFun &&) = delete;
~myFun() = default;
};