From: Stefano Zampini 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 - BlockSparseMatrix( + explicit BlockSparseMatrix( const std::array, 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 - BlockVector(const std::array &); + explicit BlockVector(const std::array &); /** * Destructor. Clears memory