From 80b38411fe2e11ca7648ca65c78a07231d7beb57 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Mon, 28 Feb 2011 13:27:14 +0000
Subject: [PATCH] [array] use fill for asignment from scalar

[[Imported from SVN: r6362]]
---
 dune/common/array.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/common/array.hh b/dune/common/array.hh
index e2cea09dd..5ad73ed46 100644
--- a/dune/common/array.hh
+++ b/dune/common/array.hh
@@ -73,7 +73,7 @@ namespace Dune
     //! Assign value to all entries
     array<T,N>& operator= (const T& t)
     {
-      for (size_type i=0; i<N; i++) a[i]=t;
+      fill(t);
       return (*this);
     }
 
-- 
GitLab