From: Daniel Garcia-Sanchez Date: Thu, 25 Apr 2019 18:36:03 +0000 (+0200) Subject: Exchange vectors in std::vector::swap() X-Git-Tag: v9.1.0-rc1~175^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc36f8d58aaa9bb0c034e2fb236ddf7f85f495c;p=dealii.git Exchange vectors in std::vector::swap() --- 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());