]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning about missing copy constructors 10403/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 28 May 2020 13:45:54 +0000 (09:45 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 28 May 2020 13:47:32 +0000 (09:47 -0400)
include/deal.II/lac/petsc_vector_base.h
include/deal.II/lac/trilinos_vector.h

index 7b32322f2e89e84e8a6758425343524f97c131e2..5490d341604937d903a30d1af61a66a536f0a699 100644 (file)
@@ -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
index af08c35432ff2175c1d8c0e88618e17457f42a50..25b2ccf82c728ccc850bc7d2ef3620d7bb1b5113 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.