From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4a1f1f369a1f41a1e0a2e503e3c70bfe8d8f2af;p=dealii-svn.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); }