From 86d59c7b9b8241f886400b8209a2cb40624b5890 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 2 Jul 2001 14:32:13 +0000 Subject: [PATCH] fill_n is not standard C++. git-svn-id: https://svn.dealii.org/trunk@4786 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/function.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/deal.II/base/source/function.cc b/deal.II/base/source/function.cc index 38499f74ef..adfda47a1a 100644 --- a/deal.II/base/source/function.cc +++ b/deal.II/base/source/function.cc @@ -220,7 +220,7 @@ void ZeroFunction::vector_value (const Point &, Assert (return_value.size() == n_components, ExcDimensionMismatch (return_value.size(), n_components)); - std::fill_n (return_value.begin(), n_components, 0.0); + std::fill (return_value.begin(), return_value.end(), 0.0); }; @@ -231,7 +231,7 @@ void ZeroFunction::value_list (const typename std::vector > &poi Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); - fill_n (values.begin(), points.size(), 0.); + std::fill (values.begin(), values.end(), 0.); }; @@ -246,7 +246,7 @@ void ZeroFunction::vector_value_list (const typename std::vector { Assert (values[i].size() == n_components, ExcDimensionMismatch(values[i].size(), n_components)); - std::fill_n (values[i].begin(), n_components, 0.); + std::fill (values[i].begin(), values[i].end(), 0.); }; }; @@ -328,7 +328,7 @@ void ConstantFunction::vector_value (const Point &, Assert (return_value.size() == n_components, ExcDimensionMismatch (return_value.size(), n_components)); - std::fill_n (return_value.begin(), n_components, function_value); + std::fill (return_value.begin(), return_value.end(), function_value); }; @@ -340,7 +340,7 @@ void ConstantFunction::value_list (const typename std::vector > Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); - fill_n (values.begin(), points.size(), function_value); + std::fill (values.begin(), values.end(), function_value); }; @@ -355,7 +355,7 @@ void ConstantFunction::vector_value_list (const typename std::vector::vector_value (const Point &, Assert (return_value.size() == n_components, ExcDimensionMismatch (return_value.size(), n_components)); - std::fill_n (return_value.begin(), n_components, 0.); + std::fill (return_value.begin(), return_value.end(), 0.); return_value(selected) = function_value; } @@ -406,7 +406,7 @@ void ComponentSelectFunction::vector_value_list (const typename std::vector { Assert (values[i].size() == n_components, ExcDimensionMismatch(values[i].size(), n_components)); - std::fill_n (values[i].begin(), n_components, 0.); + std::fill (values[i].begin(), values[i].end(), 0.); values[i](selected) = function_value; } } -- 2.39.5