From 11aef84a644b036b3f7acae2bad252737d8151aa Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 5 May 2018 00:49:12 +0200 Subject: [PATCH] Replace std::memmove by std::move for std::pair --- 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 781173d749..80bf4528d7 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::memmove(&data[i*row_length*2], &data[i*row_length], - individual_size[i]* - sizeof(std::pair)); + std::move(data.data()+(i*row_length*2), + data.data()+(i*row_length+2+individual_size[i]), + data.data()+(i*row_length)); row_length *= 2; } data[index*row_length+my_length] = pair; -- 2.39.5