Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686005254
  • Loading branch information
Google-ML-Automation committed Oct 15, 2024
1 parent 5601741 commit aa9d69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xla/array2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ class Array2D : public Array<T> {
: Array<T>(values) {}

Array2D(const Array2D<T>& other) : Array<T>(other) {}
Array2D(Array2D<T>&& other) : Array<T>(std::move(other)) {}
Array2D(Array2D<T>&& other) noexcept : Array<T>(std::move(other)) {}

Array2D& operator=(const Array2D<T>& other) {
Array<T>::operator=(other);
return *this;
}

Array2D& operator=(Array2D<T>&& other) {
Array2D& operator=(Array2D<T>&& other) noexcept {
Array<T>::operator=(std::move(other));
return *this;
}
Expand Down

0 comments on commit aa9d69e

Please sign in to comment.