diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-31 18:11:35 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-10-31 18:11:36 +0100 |
commit | 07c9e3d393db4b4d59262f7d9898be169ac2f927 (patch) | |
tree | 2623fbfd1c1614c2de575437cb89a787e93d8c1d /include/dchat/utils.hpp | |
parent | a5e2adedf38f84a8be5e8d844e02991d3bbfecca (diff) |
Make generic
Diffstat (limited to 'include/dchat/utils.hpp')
-rwxr-xr-x | include/dchat/utils.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dchat/utils.hpp b/include/dchat/utils.hpp new file mode 100755 index 0000000..01e478d --- /dev/null +++ b/include/dchat/utils.hpp @@ -0,0 +1,6 @@ +#pragma once + +// Disable copying for a class or struct +#define DISABLE_COPY(ClassName) \ + ClassName(ClassName&) = delete; \ + ClassName& operator = (ClassName&) = delete; |