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=refs%2Fpull%2F7965%2Fhead;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());