From 66fc531577f590f40b017b7492ff25e2ed5e9e63 Mon Sep 17 00:00:00 2001 From: Andrew Jewett Date: Tue, 1 Sep 2020 16:14:08 -0700 Subject: [PATCH] corrected typo in C++11 move constructor --- include/jacobi.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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