summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
Diffstat (limited to 'raul')
-rw-r--r--raul/Array.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/raul/Array.hpp b/raul/Array.hpp
index cac993d..ee50470 100644
--- a/raul/Array.hpp
+++ b/raul/Array.hpp
@@ -79,9 +79,18 @@ public:
}
}
- Array(Array<T>&& array) = default;
+ Array(Array<T>&& array) noexcept
+ : _size(array._size)
+ , _elems(std::move(array._elems))
+ {
+ }
- Array<T>& operator=(Array<T>&&) = default;
+ Array<T>& operator=(Array<T>&& array) noexcept
+ {
+ _size = array._size;
+ _elems = std::move(array._elems);
+ return *this;
+ }
Array(size_t size, const Array<T>& contents)
: _size(size)