From cb2092c46845c5046051bb0ff58cbbe9c830bc88 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 5 May 2018 09:59:11 -0500 Subject: [PATCH] Revert "Replace std::memmove by std::move for std::pair" This reverts commit 11aef84a644b036b3f7acae2bad252737d8151aa. --- include/deal.II/lac/constraint_matrix.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5