From 7fc36f8d58aaa9bb0c034e2fb236ddf7f85f495c Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Thu, 25 Apr 2019 20:36:03 +0200 Subject: [PATCH] Exchange vectors in std::vector::swap() --- examples/step-18/step-18.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index 035991a020..cef0f64dde 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -1639,7 +1639,7 @@ namespace Step18 // includes setting the stress variables to zero. { std::vector> tmp; - tmp.swap(quadrature_point_history); + quadrature_point_history.swap(tmp); } quadrature_point_history.resize(our_cells * quadrature_formula.size()); -- 2.39.5