From: Wolfgang Bangerth Date: Tue, 10 Nov 1998 00:18:15 +0000 (+0000) Subject: Add 'explicit' to two constructors of dFMatrices to make their use safer. The previou... X-Git-Tag: v8.0.0~22590 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f9823ce9e7e84f7509edc93673f1fdd0ea5006;p=dealii.git 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 --- 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.