From 7216b6a35675772477f49a056164f07634f1722b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 7 Nov 2016 09:58:35 -0700 Subject: [PATCH] Provide a copy operator. Also initialize all member variables. --- .../numerics/matrix_creator.templates.h | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/include/deal.II/numerics/matrix_creator.templates.h b/include/deal.II/numerics/matrix_creator.templates.h index 0a7e47080a..5f70ad3d76 100644 --- a/include/deal.II/numerics/matrix_creator.templates.h +++ b/include/deal.II/numerics/matrix_creator.templates.h @@ -185,6 +185,13 @@ namespace MatrixCreator update_flags (data.update_flags) {} + Scratch &operator = (const Scratch &) + { + Assert (false, ExcNotImplemented()); + return *this; + } + + const ::dealii::hp::FECollection &fe_collection; const ::dealii::hp::QCollection &quadrature_collection; const ::dealii::hp::MappingCollection &mapping_collection; @@ -621,7 +628,7 @@ namespace MatrixCreator template struct CopyData { - CopyData() {}; + CopyData(); CopyData(CopyData const &data); @@ -633,8 +640,17 @@ namespace MatrixCreator std::vector > cell_vector; }; + + template + CopyData::CopyData() + : + dofs_per_cell(numbers::invalid_unsigned_int) + {} + + template - CopyData::CopyData(CopyData const &data) : + CopyData::CopyData(CopyData const &data) + : dofs_per_cell(data.dofs_per_cell), dofs(data.dofs), dof_is_on_face(data.dof_is_on_face), -- 2.39.5