From: wolf 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc5db912d6caad906e63a70f71631ec0c3e0fd9;p=dealii-svn.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.