Initial commit
This commit is contained in:
commit
ef40bd03c5
14 changed files with 276 additions and 0 deletions
9
include/Noncopyable.h
Executable file
9
include/Noncopyable.h
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#define MAKE_NONCOPYABLE(c) \
|
||||
private: \
|
||||
c(c const&) = delete; \
|
||||
c& operator=(c const&) = delete
|
||||
|
||||
#define MAKE_NONMOVABLE(c) \
|
||||
private: \
|
||||
c(c&&) = delete; \
|
||||
c& operator=(c&&) = delete
|
||||
Loading…
Add table
Add a link
Reference in a new issue