]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide a copy operator. 3493/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 16:58:35 +0000 (09:58 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 17:06:49 +0000 (10:06 -0700)
Also initialize all member variables.

include/deal.II/numerics/matrix_creator.templates.h

index 0a7e47080a4c7552829c17f52f89d5d098959f1f..5f70ad3d7635853f5b862869762b68edb10a000e 100644 (file)
@@ -185,6 +185,13 @@ namespace MatrixCreator
           update_flags (data.update_flags)
         {}
 
+        Scratch &operator = (const Scratch &)
+        {
+          Assert (false, ExcNotImplemented());
+          return *this;
+        }
+
+
         const ::dealii::hp::FECollection<dim,spacedim>      &fe_collection;
         const ::dealii::hp::QCollection<dim>                &quadrature_collection;
         const ::dealii::hp::MappingCollection<dim,spacedim> &mapping_collection;
@@ -621,7 +628,7 @@ namespace MatrixCreator
       template <typename DoFHandlerType, typename number>
       struct CopyData
       {
-        CopyData() {};
+        CopyData();
 
         CopyData(CopyData const &data);
 
@@ -633,8 +640,17 @@ namespace MatrixCreator
         std::vector<Vector<number> > cell_vector;
       };
 
+
+      template <typename DoFHandlerType, typename number>
+      CopyData<DoFHandlerType,number>::CopyData()
+        :
+        dofs_per_cell(numbers::invalid_unsigned_int)
+      {}
+
+
       template <typename DoFHandlerType, typename number>
-      CopyData<DoFHandlerType,number>::CopyData(CopyData const &data) :
+      CopyData<DoFHandlerType,number>::CopyData(CopyData const &data)
+        :
         dofs_per_cell(data.dofs_per_cell),
         dofs(data.dofs),
         dof_is_on_face(data.dof_is_on_face),

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.