diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 21:28:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 21:28:23 +0200 |
commit | 6e19e9446b436d9608b5a4931f25d328a5e56f93 (patch) | |
tree | 3a26822fb58c1d73583bd8eb790e1bcfdd90e78b /compat | |
parent | c622ba25379bdab352a73276544a4d68a02e1fb7 (diff) |
a
Diffstat (limited to 'compat')
-rw-r--r-- | compat/defs.hpp | 4 |
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 |