From: Daniel Arndt Date: Fri, 4 May 2018 22:49:12 +0000 (+0200) Subject: Replace std::memmove by std::move for std::pair X-Git-Tag: v9.0.0-rc1~2^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11aef84a644b036b3f7acae2bad252737d8151aa;p=dealii.git Replace std::memmove by std::move for std::pair --- 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;