Skip to content

Commit

Permalink
remove self check for move assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Dec 23, 2024
1 parent ae53d47 commit fb75f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/multi/array_ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2030,9 +2030,9 @@ class subarray : public const_subarray<T, D, ElementPtr, Layout> {
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;
}

Expand Down

0 comments on commit fb75f3e

Please sign in to comment.