From de25e536c357e412fa5f2f312a0e96def28f25ff Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 24 Jan 2015 17:33:49 +0000 Subject: [PATCH] Update NONCOPYABLE to use C++11 "=delete". This gives slightly better error messages. This was SVN commit r16217. --- source/lib/code_annotation.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/lib/code_annotation.h b/source/lib/code_annotation.h index 19bced1fa1..98c945a865 100644 --- a/source/lib/code_annotation.h +++ b/source/lib/code_annotation.h @@ -204,9 +204,10 @@ switch(x % 2) * assignment operator. */ #define NONCOPYABLE(className)\ -private:\ - className(const className&);\ - const className& operator=(const className&) + public:\ + className(const className&) = delete;\ + const className& operator=(const className&) = delete;\ + private: #if ICC_VERSION # define ASSUME_ALIGNED(ptr, multiple) __assume_aligned(ptr, multiple)