diff --git a/include/jacobi.hpp b/include/jacobi.hpp index c58db03..bfe2a63 100644 --- a/include/jacobi.hpp +++ b/include/jacobi.hpp @@ -530,7 +530,7 @@ template Jacobi:: Jacobi(Jacobi&& other) { Init(); - swap(*this, other); + swap(other); } // Using the "copy-swap" idiom for the assignment operator