From: Matthias Maier Date: Wed, 27 May 2020 16:34:00 +0000 (-0500) Subject: address review comments X-Git-Tag: v9.3.0-rc1~1535^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10285%2Fhead;p=dealii.git address review comments --- diff --git a/include/deal.II/base/thread_local_storage.h b/include/deal.II/base/thread_local_storage.h index 59cdd3d908..7d97140ba7 100644 --- a/include/deal.II/base/thread_local_storage.h +++ b/include/deal.II/base/thread_local_storage.h @@ -39,7 +39,7 @@ class LogStream; namespace Threads { # ifndef DOXYGEN - namespace + namespace internal { /* * Workaround: The standard unfortunately has an unfortunate design @@ -66,7 +66,7 @@ namespace Threads { using type = T; }; - } // namespace + } // namespace internal # endif /** @@ -100,7 +100,8 @@ namespace Threads class ThreadLocalStorage { static_assert( - std::is_copy_constructible::type>::value || + std::is_copy_constructible< + typename internal::unpack_container::type>::value || std::is_default_constructible::value, "The stored type must be either copyable, or default constructible"); @@ -183,7 +184,6 @@ namespace Threads ThreadLocalStorage & operator=(const T &t); - /** * Move the given argument into the storage space used to represent the * current thread. Calling this function as tls_data =