Index: mojo/public/cpp/bindings/array.h |
diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h |
index f1d4e5ccb3653f02819997f2913111e4cb0d554d..e87e5dc6b263706da1b8637c6db131c6bcfea6ae 100644 |
--- a/mojo/public/cpp/bindings/array.h |
+++ b/mojo/public/cpp/bindings/array.h |
@@ -13,7 +13,7 @@ |
#include <utility> |
#include <vector> |
-#include "base/macros.h" |
+#include "base/move.h" |
#include "mojo/public/cpp/bindings/lib/array_internal.h" |
#include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
#include "mojo/public/cpp/bindings/lib/template_util.h" |
@@ -25,6 +25,8 @@ |
// meaning that no value has been assigned to it. Null is distinct from empty. |
template <typename T> |
class Array { |
+ MOVE_ONLY_TYPE_FOR_CPP_03(Array); |
+ |
public: |
using ConstRefType = typename std::vector<T>::const_reference; |
using RefType = typename std::vector<T>::reference; |
@@ -213,8 +215,6 @@ |
std::vector<T> vec_; |
bool is_null_; |
- |
- DISALLOW_COPY_AND_ASSIGN(Array); |
}; |
// A |TypeConverter| that will create an |Array<T>| containing a copy of the |