mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-11 14:35:01 +08:00
support bazel complie this project and format code.
This commit is contained in:
18
learn_class/modern_cpp_30/literalAssert/default_delete.cpp
Normal file
18
learn_class/modern_cpp_30/literalAssert/default_delete.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// 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;
|
||||
};
|
||||
Reference in New Issue
Block a user