]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add 'explicit' to two constructors of dFMatrices to make their use safer. The previou...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Nov 1998 00:18:15 +0000 (00:18 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Nov 1998 00:18:15 +0000 (00:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@667 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dfmatrix.h

index 01a6e7af3666323dd308a851898e470466548182..a133e3037212d711fe56e24d99ee28fcf1ac9ec0 100644 (file)
@@ -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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.