From: Daniel Arndt Date: Fri, 29 May 2020 18:17:57 +0000 (-0400) Subject: Delete copy constructor for ThreadLocalStorage X-Git-Tag: v9.3.0-rc1~1516^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10420%2Fhead;p=dealii.git Delete copy constructor for ThreadLocalStorage --- diff --git a/include/deal.II/base/thread_local_storage.h b/include/deal.II/base/thread_local_storage.h index 7d97140ba7..78afb0a138 100644 --- a/include/deal.II/base/thread_local_storage.h +++ b/include/deal.II/base/thread_local_storage.h @@ -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) = default; - - /** - * Move constructor. Copies the internal state over from the given - * object. - */ - ThreadLocalStorage(ThreadLocalStorage &&t) noexcept = default; + ThreadLocalStorage(const ThreadLocalStorage &t) = delete; /** * Return a reference to the data stored by this object for the current