]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove Task::operator==.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 May 2020 00:35:04 +0000 (18:35 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 May 2020 00:35:04 +0000 (18:35 -0600)
I don't see how to implement in the scheme I have in my head, and it's hard to see
why anyone would want to use it to begin with.

include/deal.II/base/thread_management.h

index 4546ec0b2aa5df438f635295be8a819c1a9f39f8..20f4eedf990e9373ef7acfe60c0784f4e0e8a48c 100644 (file)
@@ -1336,18 +1336,6 @@ namespace Threads
     }
 
 
-    /**
-     * Check for equality of task objects. Since objects of this class store
-     * an implicit pointer to an object that exists exactly once for each
-     * task, the check is simply to compare these pointers.
-     */
-    bool
-    operator==(const Task &t) const
-    {
-      AssertThrow(joinable(), ExcNoTask());
-      return task_descriptor == t.task_descriptor;
-    }
-
     /**
      * @addtogroup Exceptions
      * @{

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.