From a4a1f1f369a1f41a1e0a2e503e3c70bfe8d8f2af Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 21 Dec 2013 17:14:07 +0000 Subject: [PATCH] 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 --- deal.II/include/deal.II/base/table.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5