]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete copy constructor for ThreadLocalStorage 10420/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 29 May 2020 18:17:57 +0000 (14:17 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 29 May 2020 18:55:07 +0000 (14:55 -0400)
include/deal.II/base/thread_local_storage.h

index 7d97140ba7e8d5aedbe0d449b2144c5493789890..78afb0a138723064f644557103ee2426e21d9c22 100644 (file)
@@ -127,16 +127,10 @@ namespace Threads
     explicit ThreadLocalStorage(T &&t);
 
     /**
-     * Copy constructor. Initialize each thread local object with the
-     * corresponding object of the given object.
+     * The copy constructor is deleted. Copying instances of this class is not
+     * allowed.
      */
-    ThreadLocalStorage(const ThreadLocalStorage<T> &t) = default;
-
-    /**
-     * Move constructor. Copies the internal state over from the given
-     * object.
-     */
-    ThreadLocalStorage(ThreadLocalStorage<T> &&t) noexcept = default;
+    ThreadLocalStorage(const ThreadLocalStorage<T> &t) = delete;
 
     /**
      * Return a reference to the data stored by this object for the current

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.