Index: base/macros.h |
diff --git a/base/macros.h b/base/macros.h |
index 554ea439ed4a59de2efcac9b962bdbb3a7caed2b..82626b1d17c11dad22ca5c1fc11d7ca1a1fb1ff4 100644 |
--- a/base/macros.h |
+++ b/base/macros.h |
@@ -23,8 +23,8 @@ |
// A macro to disallow the copy constructor and operator= functions |
// This should be used in the private: declarations for a class |
Ryan Hamilton
2016/05/25 14:10:06
Presumably, this advice about private: is no longe
Peter Kasting
2016/05/25 18:55:17
No, this advice is still correct. We have not mad
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ |
- TypeName(const TypeName&); \ |
- void operator=(const TypeName&) |
+ TypeName(const TypeName&) = delete; \ |
+ void operator=(const TypeName&) = delete |
// A macro to disallow all the implicit constructors, namely the |
// default constructor, copy constructor and operator= functions. |