Index: base/macros.h |
diff --git a/base/macros.h b/base/macros.h |
index d9043281cf5aba6b6c6ac6b3ca5e449048aa1aa7..0325e7416510f40c700223119922b785b26bf96e 100644 |
--- a/base/macros.h |
+++ b/base/macros.h |
@@ -13,13 +13,13 @@ |
#include <stddef.h> // For size_t. |
#include <string.h> // For memcpy. |
-// Put this in the private: declarations for a class to be uncopyable. |
+// Put this in the declarations for a class to be uncopyable. |
#define DISALLOW_COPY(TypeName) \ |
- TypeName(const TypeName&) |
+ TypeName(const TypeName&) = delete |
-// Put this in the private: declarations for a class to be unassignable. |
+// Put this in the declarations for a class to be unassignable. |
#define DISALLOW_ASSIGN(TypeName) \ |
- void operator=(const TypeName&) |
+ void operator=(const TypeName&) = delete |
// A macro to disallow the copy constructor and operator= functions |
// This should be used in the private: declarations for a class |