From 9e73cfb28552d173df64d00f7f2493885395b003 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Fri, 20 Nov 2015 00:53:15 +0100 Subject: [PATCH] [bcrsmatrix] make the field_type of usmv a tempalte parameter --- dune/istl/bcrsmatrix.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/istl/bcrsmatrix.hh b/dune/istl/bcrsmatrix.hh index abd68596b..50df45b07 100644 --- a/dune/istl/bcrsmatrix.hh +++ b/dune/istl/bcrsmatrix.hh @@ -1623,8 +1623,8 @@ namespace Dune { } //! y += alpha A x - template<class X, class Y> - void usmv (const field_type& alpha, const X& x, Y& y) const + template<typename F, class X, class Y> + void usmv (F&& alpha, const X& x, Y& y) const { #ifdef DUNE_ISTL_WITH_CHECKING if (ready != built) -- GitLab