From: Matthias Maier Date: Sat, 5 May 2018 14:59:11 +0000 (-0500) Subject: Revert "Replace std::memmove by std::move for std::pair" X-Git-Tag: v9.0.0-rc2~3^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb2092c46845c5046051bb0ff58cbbe9c830bc88;p=dealii.git Revert "Replace std::memmove by std::move for std::pair" This reverts commit 11aef84a644b036b3f7acae2bad252737d8151aa. --- diff --git a/include/deal.II/lac/constraint_matrix.templates.h b/include/deal.II/lac/constraint_matrix.templates.h index 80bf4528d7..781173d749 100644 --- a/include/deal.II/lac/constraint_matrix.templates.h +++ b/include/deal.II/lac/constraint_matrix.templates.h @@ -1062,9 +1062,9 @@ namespace internals // at least one element when we get here, subtracting 1 works fine. data.resize(2*data.size()); for (size_type i=individual_size.size()-1; i>0; --i) - std::move(data.data()+(i*row_length*2), - data.data()+(i*row_length+2+individual_size[i]), - data.data()+(i*row_length)); + std::memmove(&data[i*row_length*2], &data[i*row_length], + individual_size[i]* + sizeof(std::pair)); row_length *= 2; } data[index*row_length+my_length] = pair;