Adds misc macro NO_COPY_OR_MOVE, which allows you to delete copy and move constructors and assignment operators.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
28ba531a47
commit
c1917c6f77
|
@ -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…
Reference in New Issue