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

This commit is contained in:
Deukhoofd 2021-03-07 09:54:55 +01:00
parent 28ba531a47
commit c1917c6f77
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 10 additions and 0 deletions

10
src/Misc.hpp Normal file
View 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