From: Daniel Arndt Date: Thu, 28 May 2020 13:45:54 +0000 (-0400) Subject: Fix warning about missing copy constructors X-Git-Tag: v9.3.0-rc1~1530^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10403%2Fhead;p=dealii.git Fix warning about missing copy constructors --- diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 7b32322f2e..5490d34160 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -93,8 +93,12 @@ namespace PETScWrappers */ VectorReference(const VectorBase &vector, const size_type index); - public: + /* + * Copy constrcutor. + */ + VectorReference(const VectorReference &vector) = default; + /** * This looks like a copy operator, but does something different than * usual. In particular, it does not copy the member variables of this diff --git a/include/deal.II/lac/trilinos_vector.h b/include/deal.II/lac/trilinos_vector.h index af08c35432..25b2ccf82c 100644 --- a/include/deal.II/lac/trilinos_vector.h +++ b/include/deal.II/lac/trilinos_vector.h @@ -107,6 +107,11 @@ namespace TrilinosWrappers VectorReference(MPI::Vector &vector, const size_type index); public: + /** + * Copy constructor. + */ + VectorReference(const VectorReference &) = default; + /** * This looks like a copy operator, but does something different than * usual. In particular, it does not copy the member variables of this