CPlusPlusThings/modern_C++_30/literalAssert/default_delete.cpp
Light-City 095ebc9011 update
2019-12-25 21:06:30 +08:00

18 lines
270 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;
};