1
0
forked from 0ad/0ad

Update NONCOPYABLE to use C++11 "=delete".

This gives slightly better error messages.

This was SVN commit r16217.
This commit is contained in:
Ykkrosh 2015-01-24 17:33:49 +00:00
parent 3ce38e536e
commit de25e536c3

View File

@ -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)