diff --git a/include/boost/multi/array_ref.hpp b/include/boost/multi/array_ref.hpp index d68088a7e..c40f7b789 100644 --- a/include/boost/multi/array_ref.hpp +++ b/include/boost/multi/array_ref.hpp @@ -2030,9 +2030,9 @@ class subarray : public const_subarray { return *this; } constexpr auto operator=(subarray&& other) & noexcept -> subarray& { // TODO(correaa) make conditionally noexcept - if(this == std::addressof(other)) { return *this; } + // if(this == std::addressof(other)) { return *this; } assert(this->extension() == other.extension()); - this->elements() = other.elements(); + this->elements() = std::move(other).elements(); return *this; }