From 7a7fb4e75ab1f7be2aaf95a23e1942bfceeeffc5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 28 May 2020 09:45:54 -0400 Subject: [PATCH] Fix warning about missing copy constructors --- include/deal.II/lac/petsc_vector_base.h | 6 +++++- include/deal.II/lac/trilinos_vector.h | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 -- 2.39.5