Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: base/macros.h

Issue 1981053002: Implement DISALLOW_COPY_AND_ASSIGN using = delete. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove newly-unused variables Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autofill_private/autofill_private_event_router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autofill_private/autofill_private_event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698