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:
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
|
||||
Reference in New Issue
Block a user