From: Stefano Zampini <stefano.zampini@gmail.com>
Date: Thu, 20 Apr 2023 15:38:30 +0000 (+0300)
Subject: Make constructors explicit
X-Git-Tag: v9.5.0-rc1~307^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15116%2Fhead;p=dealii.git

Make constructors explicit
---

diff --git a/include/deal.II/lac/petsc_block_sparse_matrix.h b/include/deal.II/lac/petsc_block_sparse_matrix.h
index 279301e129..da1dab073d 100644
--- a/include/deal.II/lac/petsc_block_sparse_matrix.h
+++ b/include/deal.II/lac/petsc_block_sparse_matrix.h
@@ -115,7 +115,7 @@ namespace PETScWrappers
        * Create a BlockSparseMatrix with an array of PETSc matrices.
        */
       template <size_t block_rows, size_t block_columns>
-      BlockSparseMatrix(
+      explicit BlockSparseMatrix(
         const std::array<std::array<Mat, block_columns>, block_rows> &);
 
       /**
diff --git a/include/deal.II/lac/petsc_block_vector.h b/include/deal.II/lac/petsc_block_vector.h
index 35b3d48591..1036745888 100644
--- a/include/deal.II/lac/petsc_block_vector.h
+++ b/include/deal.II/lac/petsc_block_vector.h
@@ -142,7 +142,7 @@ namespace PETScWrappers
        * Create a BlockVector with an array of PETSc vectors.
        */
       template <size_t num_blocks>
-      BlockVector(const std::array<Vec, num_blocks> &);
+      explicit BlockVector(const std::array<Vec, num_blocks> &);
 
       /**
        * Destructor. Clears memory