summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-07 21:28:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-07 21:28:23 +0200
commit6e19e9446b436d9608b5a4931f25d328a5e56f93 (patch)
tree3a26822fb58c1d73583bd8eb790e1bcfdd90e78b /compat
parentc622ba25379bdab352a73276544a4d68a02e1fb7 (diff)
a
Diffstat (limited to 'compat')
-rw-r--r--compat/defs.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/defs.hpp b/compat/defs.hpp
index 3ba5ebaf..f4590ca3 100644
--- a/compat/defs.hpp
+++ b/compat/defs.hpp
@@ -11,3 +11,7 @@
#define DECLARE_DEPRECATED_COPY_OPERATOR(type) \
[[deprecated]] type(const type&) = default; \
[[deprecated]] type& operator=(const type&) = default
+
+#define DECLARE_DELETED_COPY_OPERATOR(type) \
+ type(const type&) = delete; \
+ type& operator=(const type&) = delete