]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid the use of std::copy_n -- this is apparently C++11 stuff.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 21 Dec 2013 17:14:07 +0000 (17:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 21 Dec 2013 17:14:07 +0000 (17:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@32088 0785d39b-7218-0410-832d-ea1e28bc413d

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

index d753836bd81b1fb77aef9844d68df5234a9b9fe9..890d8d9af476cf83152abde593d7d7c3e9efb64b 100644 (file)
@@ -2317,7 +2317,9 @@ TableBase<N,T>::fill (InputIterator entries,
           ExcMessage("Trying to fill an empty matrix."));
 
   if (C_style_indexing)
-    std::copy_n (entries, n_elements(), values.begin());
+    for (typename std::vector<T>::iterator p = values.begin();
+        p != values.end(); ++p)
+      *p = *entries++;
   else
     internal::Table::fill_Fortran_style (entries, *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.