From: Daniel Arndt Date: Thu, 9 May 2019 12:47:24 +0000 (-0400) Subject: Avoid declaring special member functions X-Git-Tag: v9.1.0-rc1~100^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8051%2Fhead;p=dealii.git Avoid declaring special member functions --- 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 ();