From: Martin Kronbichler Date: Wed, 4 Dec 2013 20:31:28 +0000 (+0000) Subject: Avoid using C++11 X-Git-Tag: v8.1.0~93 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a270f98f606ec98f4d17a19636256a754ac73eb1;p=dealii.git Avoid using C++11 git-svn-id: https://svn.dealii.org/trunk@31886 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/constraint_matrix.templates.h b/deal.II/include/deal.II/lac/constraint_matrix.templates.h index 9566ded083..d2e4dce533 100644 --- a/deal.II/include/deal.II/lac/constraint_matrix.templates.h +++ b/deal.II/include/deal.II/lac/constraint_matrix.templates.h @@ -1314,9 +1314,9 @@ namespace internals for (size_type i=individual_size.size(); i>0; ) { --i; - std::move_backward(&data[i*row_length], - &data[i*row_length]+individual_size[i], - &data[i*row_length*2]+individual_size[i]); + std::memmove(&data[i*row_length*2], &data[i*row_length], + individual_size[i]* + sizeof(std::pair)); } row_length *= 2; }