Skip to content

Commit

Permalink
corrected typo in C++11 move constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jewettaij committed Sep 1, 2020
1 parent 3fab8bd commit 66fc531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jacobi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ template<typename Scalar,typename Vector,typename Matrix,typename ConstMatrix>
Jacobi<Scalar, Vector, Matrix, ConstMatrix>::
Jacobi(Jacobi<Scalar, Vector, Matrix, ConstMatrix>&& other) {
Init();
swap(*this, other);
swap(other);
}

// Using the "copy-swap" idiom for the assignment operator
Expand Down

0 comments on commit 66fc531

Please sign in to comment.