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=refs%2Fpull%2F6477%2Fhead;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;