From 67f9823ce9e7e84f7509edc93673f1fdd0ea5006 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 10 Nov 1998 00:18:15 +0000 Subject: [PATCH] Add 'explicit' to two constructors of dFMatrices to make their use safer. The previous way could result in unwanted effects. git-svn-id: https://svn.dealii.org/trunk@667 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/dfmatrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/dfmatrix.h b/deal.II/lac/include/lac/dfmatrix.h index 01a6e7af36..a133e30372 100644 --- a/deal.II/lac/include/lac/dfmatrix.h +++ b/deal.II/lac/include/lac/dfmatrix.h @@ -79,7 +79,7 @@ class dFMatrix * Constructor. Initialize the matrix as * a square matrix with dimension #n#. */ - dFMatrix (const unsigned int n = 1); + explicit dFMatrix (const unsigned int n = 1); /** * Constructor. Initialize the matrix as @@ -93,7 +93,7 @@ class dFMatrix * huge amount of computing time for large * matrices!! */ - dFMatrix (const dFMatrix&); + explicit dFMatrix (const dFMatrix&); /** * Destructor. Release all memory. -- 2.39.5