From 934e9a02d7ec2dd7703bd883d9b2be0df6597e81 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 9 May 2019 08:47:24 -0400 Subject: [PATCH] Avoid declaring special member functions --- include/deal.II/base/thread_management.h | 20 ------------------- include/deal.II/lac/sparse_matrix.h | 2 +- include/deal.II/particles/particle_iterator.h | 6 ------ 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index f06cd09b5c..7e7294b571 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -1511,16 +1511,6 @@ namespace Threads } - /** - * Copy constructor. - * - * @post Using this constructor automatically makes the task object - * joinable(). - */ - Task(const Task &t) - : task_descriptor(t.task_descriptor) - {} - /** * Default constructor. You can't do much with a task object constructed @@ -1533,16 +1523,6 @@ namespace Threads Task() = default; - /** - * Copy assignment operator. - */ - const Task & - operator=(const Task &t) - { - task_descriptor = t.task_descriptor; - return *this; - } - /** * Join the task represented by this object, i.e. wait for it to finish. diff --git a/include/deal.II/lac/sparse_matrix.h b/include/deal.II/lac/sparse_matrix.h index 853700501b..1452ad2d39 100644 --- a/include/deal.II/lac/sparse_matrix.h +++ b/include/deal.II/lac/sparse_matrix.h @@ -379,7 +379,7 @@ namespace SparseMatrixIterators Iterator(const SparseMatrixIterators::Iterator &i); /** - * Copy assignment operator. + * Copy assignment operator from a non-const iterator to a const iterator. */ const Iterator & operator=(const SparseMatrixIterators::Iterator &i); diff --git a/include/deal.II/particles/particle_iterator.h b/include/deal.II/particles/particle_iterator.h index b2b340acc5..34bbfe5f2b 100644 --- a/include/deal.II/particles/particle_iterator.h +++ b/include/deal.II/particles/particle_iterator.h @@ -62,12 +62,6 @@ namespace Particles */ ParticleAccessor &operator*(); - /** - * Assignment operator. - */ - ParticleIterator & - operator=(const ParticleIterator &) = default; - /** * Dereferencing operator, returns a pointer of the particle pointed to. * Usage is thus like i->get_id (); -- 2.39.5