aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/utils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-31 18:11:35 +0100
committerdec05eba <dec05eba@protonmail.com>2018-10-31 18:11:36 +0100
commit07c9e3d393db4b4d59262f7d9898be169ac2f927 (patch)
tree2623fbfd1c1614c2de575437cb89a787e93d8c1d /include/dchat/utils.hpp
parenta5e2adedf38f84a8be5e8d844e02991d3bbfecca (diff)
Make generic
Diffstat (limited to 'include/dchat/utils.hpp')
-rwxr-xr-xinclude/dchat/utils.hpp6
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;