From 64e656039f8303aefdd59274f56054d148717d4b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 1 Jul 2023 10:46:54 -0600 Subject: [PATCH] Use std::move instead of std::swap. --- include/deal.II/lac/affine_constraints.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index d951ddb6f4..14266625cb 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -648,7 +648,7 @@ AffineConstraints::close() new_lines[calculate_line_index(line.index)] = counter; ++counter; } - std::swap(lines_cache, new_lines); + lines_cache = std::move(new_lines); } // in debug mode: check whether we really set the pointers correctly. -- 2.39.5