Adds misc macro NO_COPY_OR_MOVE, which allows you to delete copy and move constructors and assignment operators.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
28ba531a47
commit
c1917c6f77
10
src/Misc.hpp
Normal file
10
src/Misc.hpp
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef ARBUTILS_MISC_HPP
|
||||
#define ARBUTILS_MISC_HPP
|
||||
|
||||
#define NO_COPY_OR_MOVE(type)\
|
||||
type(const type&) = delete;\
|
||||
type(type&&) = delete;\
|
||||
type& operator=(const type&) = delete;\
|
||||
type& operator=(type&&) = delete;\
|
||||
|
||||
#endif // ARBUTILS_MISC_HPP
|
Loading…
x
Reference in New Issue
Block a user