]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a better way to copy stuff.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 00:24:05 +0000 (00:24 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 00:24:05 +0000 (00:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@23897 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/table.h

index 6418f897c4bfb59b751a5fa487fa287e9a8c870a..606e042411c26c45b8139182af68459bafa37fda 100644 (file)
@@ -1940,7 +1940,7 @@ TableBase<N,T>::operator = (const TableBase<N,T2>& m)
 {
   reinit (m.size());
   if (!empty())
-    std::copy (&m.values[0], &m.values[n_elements()], &values[0]);
+    std::copy (m.values.begin(), values.begin(), n_elements());
 
   return *this;
 }

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.