From: Wolfgang Bangerth Date: Sat, 25 Jun 2016 05:20:21 +0000 (-0500) Subject: Make conversion constructors of ::Vector explicit. X-Git-Tag: v8.5.0-rc1~953^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c06b642f5eee69de6272cebb51b83e6f98ec1a7;p=dealii.git Make conversion constructors of ::Vector explicit. --- diff --git a/include/deal.II/lac/vector.h b/include/deal.II/lac/vector.h index 47dba123e0..0cc448e2aa 100644 --- a/include/deal.II/lac/vector.h +++ b/include/deal.II/lac/vector.h @@ -205,7 +205,7 @@ public: * vector class. This copy constructor is only available if PETSc was * detected during configuration time. */ - Vector (const PETScWrappers::Vector &v); + explicit Vector (const PETScWrappers::Vector &v); /** * Another copy constructor: copy the values from a parallel PETSc wrapper @@ -217,7 +217,7 @@ public: * possible for only one process to obtain a copy of a parallel vector while * the other jobs do something else. */ - Vector (const PETScWrappers::MPI::Vector &v); + explicit Vector (const PETScWrappers::MPI::Vector &v); #endif #ifdef DEAL_II_WITH_TRILINOS @@ -232,14 +232,14 @@ public: * vector while the other jobs do something else. This call will rather * result in a copy of the vector on all processors. */ - Vector (const TrilinosWrappers::MPI::Vector &v); + explicit Vector (const TrilinosWrappers::MPI::Vector &v); /** * Another copy constructor: copy the values from a localized Trilinos * wrapper vector. This copy constructor is only available if Trilinos was * detected during configuration time. */ - Vector (const TrilinosWrappers::Vector &v); + explicit Vector (const TrilinosWrappers::Vector &v); #endif /**