aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/utils.hpp
diff options
context:
space:
mode:
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;