From b29320530997e532426f6e85b714b14769623775 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 29 May 2020 14:17:57 -0400 Subject: [PATCH] Delete copy constructor for ThreadLocalStorage --- include/deal.II/base/thread_local_storage.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 -- 2.39.5