From 6e19e9446b436d9608b5a4931f25d328a5e56f93 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Oct 2022 21:28:23 +0200 Subject: a --- compat/defs.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat') 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 -- cgit v1.2.3