Skip to content

Commit

Permalink
Merge pull request dealii#13831 from bangerth/rule-of-3
Browse files Browse the repository at this point in the history
Provide a defaulted copy operator.
  • Loading branch information
masterleinad committed May 26, 2022
2 parents 649bc33 + a6ad89d commit 93aa9b5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions include/deal.II/meshworker/copy_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ namespace MeshWorker
const std::array<unsigned int, n_dof_indices> &dof_indices_sizes);

/**
* Deep copy constructor.
* Copy constructor.
*/
CopyData(const CopyData<n_matrices, n_vectors, n_dof_indices, ScalarType>
&other) = default;
CopyData(const CopyData &other) = default;

/**
* Copy operator.
*/
CopyData &
operator=(const CopyData &other) = default;

/**
* Reinitialize everything the same @p size. This is usually the number of
Expand Down

0 comments on commit 93aa9b5

Please sign in to comment.