From 886078365a08adc7d6f04509b7ee5b334334e5e5 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Thu, 1 Oct 2009 17:30:55 +0000 Subject: [PATCH] make FieldMatrix<K,n,m>(K) explicit [fixes #565] [[Imported from SVN: r5608]] --- common/fmatrix.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fmatrix.hh b/common/fmatrix.hh index 0241ca13c..9c09b6997 100644 --- a/common/fmatrix.hh +++ b/common/fmatrix.hh @@ -130,7 +130,7 @@ namespace Dune { /** \brief Constructor initializing the whole matrix with a scalar */ - FieldMatrix (const K& k) + explicit FieldMatrix (const K& k) { for (size_type i=0; i<n; i++) p[i] = k; } @@ -943,7 +943,7 @@ namespace Dune { /** \brief Constructor initializing the whole matrix with a scalar */ - FieldMatrix (const K& k) + explicit FieldMatrix (const K& k) { a = k; } -- GitLab