]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
make a bunch of constructors 'explicit'
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Feb 2013 22:47:18 +0000 (22:47 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Feb 2013 22:47:18 +0000 (22:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@28482 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_block_vector.h

index 2a6dd0f02bae38f2efefce71d147a66052a323b6..a6b8a92cbeaeb472c7fa6fb7f3a3584669558f4f 100644 (file)
@@ -105,7 +105,7 @@ namespace TrilinosWrappers
      * used, just the global size of the
      * partitioner.
      */
-    BlockVector (const std::vector<Epetra_Map> &partitioner);
+    explicit BlockVector (const std::vector<Epetra_Map> &partitioner);
 
     /**
      * Constructor. Generate a block
@@ -116,8 +116,8 @@ namespace TrilinosWrappers
      * used, just the global size of the
      * partitioner.
      */
-    BlockVector (const std::vector<IndexSet> &partitioner,
-                 const MPI_Comm              &communicator = MPI_COMM_WORLD);
+    explicit BlockVector (const std::vector<IndexSet> &partitioner,
+                          const MPI_Comm              &communicator = MPI_COMM_WORLD);
 
     /**
      * Copy-Constructor. Set all the
@@ -146,7 +146,7 @@ namespace TrilinosWrappers
      * fill appropriate data using a
      * reinit of the blocks.
      */
-    BlockVector (const unsigned int num_blocks);
+    explicit BlockVector (const unsigned int num_blocks);
 
     /**
      * Constructor. Set the number of
@@ -156,7 +156,7 @@ namespace TrilinosWrappers
      *
      * References BlockVector.reinit().
      */
-    BlockVector (const std::vector<unsigned int> &N);
+    explicit BlockVector (const std::vector<unsigned int> &N);
 
     /**
      * Constructor. Set the number of

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.