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

Unified Diff: base/move.h

Issue 1501793003: Rename MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/memory/scoped_ptr.h ('k') | base/scoped_generic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/move.h
diff --git a/base/move.h b/base/move.h
index 6743eb71667c7651ccb7c9571f3a0dce13732d41..51f112b3c10a54364c3c9798f4f0622c0d14b127 100644
--- a/base/move.h
+++ b/base/move.h
@@ -30,7 +30,7 @@
//
// template <typename T>
// class scoped_ptr {
-// MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type);
+// DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type);
// public:
// scoped_ptr(scoped_ptr&& other) : ptr_(other.release()) { }
// scoped_ptr& operator=(scoped_ptr&& other) {
@@ -50,9 +50,9 @@
// for more details.
#define MOVE_ONLY_TYPE_FOR_CPP_03(type) \
- MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type)
+ DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type)
-#define MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type) \
+#define DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type) \
Nico 2015/12/04 21:58:05 What do you think is the long term plan for this?
danakj 2015/12/04 22:01:47 We'll still need the typedef whitelist once Pass()
dcheng 2015/12/04 22:14:00 I've been thinking: is there a value to forcing th
private: \
type(const type&) = delete; \
void operator=(const type&) = delete; \
« no previous file with comments | « base/memory/scoped_ptr.h ('k') | base/scoped_generic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698