Chromium Code Reviews| Index: base/move.h |
| diff --git a/base/move.h b/base/move.h |
| index 06f3f323723f68126542d3db3fed49487cb73bc6..93ee9f9dc3699a65a3e5a6a77c3453d42a57d0a4 100644 |
| --- a/base/move.h |
| +++ b/base/move.h |
| @@ -219,8 +219,8 @@ |
| #define MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type) \ |
| private: \ |
| - type(type&); \ |
| - void operator=(type&); \ |
| + type(const type&); \ |
|
mgraczyk
2015/04/07 01:10:31
This allows move-only types to be used in STL cont
Nico
2015/04/07 01:36:47
Only if your STL knows about move-only types, righ
mgraczyk
2015/04/07 05:32:59
It may or may not work after this change if the li
|
| + void operator=(const type&); \ |
| public: \ |
| type&& Pass() WARN_UNUSED_RESULT { return static_cast<type&&>(*this); } \ |
| typedef void MoveOnlyTypeForCPP03; \ |