Update NONCOPYABLE to use C++11 "=delete".
This gives slightly better error messages. This was SVN commit r16217.
This commit is contained in:
parent
3ce38e536e
commit
de25e536c3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user