Index: base/move.h |
diff --git a/base/move.h b/base/move.h |
index 1c67155be1c72b8d1267dda558180ba6eea10510..0578cc889c979264cf3ff5840fb007e0958e6e3d 100644 |
--- a/base/move.h |
+++ b/base/move.h |
@@ -215,4 +215,13 @@ |
typedef void MoveOnlyTypeForCPP03; \ |
private: |
+#define MOVE_ONLY_TYPE_FOR_CPP_03_WITH_MOVE_CONSTRUCTOR(type) \ |
+ private: \ |
+ type(type&); \ |
+ void operator=(type&); \ |
+ public: \ |
+ typedef void MoveOnlyTypeForCPP03; \ |
+ type&& Pass() { return static_cast<type&&>(*this); } \ |
jamesr
2014/09/26 20:22:45
no, this is not something we should add as a gener
danakj
2014/09/26 20:57:52
Why? It's only useful if they also add a T&& const
|
+ private: |
+ |
#endif // BASE_MOVE_H_ |