aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/basic_macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/basic_macros.h b/src/util/basic_macros.h
index 687d7cf85..71be13a1f 100644
--- a/src/util/basic_macros.h
+++ b/src/util/basic_macros.h
@@ -33,9 +33,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// 'Foobar', add the macro DISABLE_CLASS_COPY(Foobar) as a private member.
// Note this also disables copying for any classes derived from 'Foobar' as well
// as classes having a 'Foobar' member.
-#define DISABLE_CLASS_COPY(C) \
- C(const C &); \
- C &operator=(const C &)
+#define DISABLE_CLASS_COPY(C) \
+ C(const C &) = delete; \
+ C &operator=(const C &) = delete;
#ifndef _MSC_VER
#define UNUSED_ATTRIBUTE __attribute__ ((unused))