From: Wolfgang Bangerth Date: Sat, 21 Dec 2013 17:14:07 +0000 (+0000) Subject: Avoid the use of std::copy_n -- this is apparently C++11 stuff. X-Git-Tag: v8.2.0-rc1~1137 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad6e6672c58917b40a4590c3ff84330cf8b02358;p=dealii.git Avoid the use of std::copy_n -- this is apparently C++11 stuff. git-svn-id: https://svn.dealii.org/trunk@32088 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/table.h b/deal.II/include/deal.II/base/table.h index d753836bd8..890d8d9af4 100644 --- a/deal.II/include/deal.II/base/table.h +++ b/deal.II/include/deal.II/base/table.h @@ -2317,7 +2317,9 @@ TableBase::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::iterator p = values.begin(); + p != values.end(); ++p) + *p = *entries++; else internal::Table::fill_Fortran_style (entries, *this); }