]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using C++11
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 4 Dec 2013 20:31:28 +0000 (20:31 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 4 Dec 2013 20:31:28 +0000 (20:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@31886 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/constraint_matrix.templates.h

index 9566ded08346e267dc74406df0f5e4f131bbad71..d2e4dce5335617a7b5011e914c331e2cb95f55ec 100644 (file)
@@ -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<size_type,double>));
             }
           row_length *= 2;
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.