aboutsummaryrefslogtreecommitdiff
path: root/utils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-02-01 20:56:03 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:16:10 +0200
commit6fd8decb98ce81fd71cebd0226e30b0024ffd77c (patch)
tree7428c0f539af0a36f5ffe31e59757ae3027bb96d /utils.hpp
parentbf9ff3ab31a996a0d6628eb23291d4a4b59543ec (diff)
Initial commit
Diffstat (limited to 'utils.hpp')
-rwxr-xr-xutils.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.hpp b/utils.hpp
new file mode 100755
index 0000000..01e478d
--- /dev/null
+++ b/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;