]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a copy operator to Mutex so that it can be used in class with an operator=. 3683/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Dec 2016 23:07:01 +0000 (16:07 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Dec 2016 23:07:01 +0000 (16:07 -0700)
include/deal.II/base/thread_management.h

index 4c61e272b3decda843b6458958ad69eff36b2750..e975b972892d31fad6e5ced97804232fd7d7a5c8 100644 (file)
@@ -304,6 +304,16 @@ namespace Threads
     {}
 
 
+    /**
+     * Copy operators. As discussed in this class's documentation, no state
+     * is copied from the object given as argument.
+     */
+    Mutex &operator = (const Mutex &)
+    {
+      return *this;
+    }
+
+
     /**
      * Acquire a mutex.
      */

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.