summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
commite066ec2e038405621a7de50e4cd735e548eb488d (patch)
tree626e7ddacf867949a5380bfe528a332dffada5a4 /src/localconsts.h
parent6d7af74bab17c03f1604e8351d397695286414ed (diff)
downloadplus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.gz
plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.bz2
plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.xz
plus-e066ec2e038405621a7de50e4cd735e548eb488d.zip
Delete copy constructor in some classes.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 8b8af420e..da08a7b7c 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -23,6 +23,8 @@
#define nullptr 0
#define final
#define override
+#define A_DELETE
+#define A_DELETE_COPY
#else
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
@@ -30,9 +32,14 @@
#if GCC_VERSION < 40700
#define final
#define override
+//#define A_DELETE
+//#define A_DELETE_COPY
#endif
#undef Z_NULL
#define Z_NULL nullptr
+#define A_DELETE(func) func = delete
+#define A_DELETE_COPY(name) name(const name &) = delete; \
+ name &operator=(const name&) = delete
#endif
#ifdef __GNUC__