diff options
Diffstat (limited to 'base/memory/scoped_vector.h')
-rw-r--r-- | base/memory/scoped_vector.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/memory/scoped_vector.h b/base/memory/scoped_vector.h index 250947f..5bfd94e 100644 --- a/base/memory/scoped_vector.h +++ b/base/memory/scoped_vector.h @@ -20,7 +20,7 @@ // we have support for moveable types inside containers). template <class T> class ScopedVector { - MOVE_ONLY_TYPE_FOR_CPP_03(ScopedVector, RValue) + MOVE_ONLY_TYPE_FOR_CPP_03(ScopedVector) public: typedef typename std::vector<T*>::allocator_type allocator_type; @@ -39,10 +39,10 @@ class ScopedVector { ScopedVector() {} ~ScopedVector() { clear(); } - ScopedVector(RValue other) { swap(*other.object); } + ScopedVector(ScopedVector&& other) { swap(other); } - ScopedVector& operator=(RValue rhs) { - swap(*rhs.object); + ScopedVector& operator=(ScopedVector&& rhs) { + swap(rhs); return *this; } |