From: Wolfgang Bangerth Date: Thu, 8 Sep 2011 00:12:07 +0000 (+0000) Subject: Mark the conversion constructor explicit, to avoid any confusion. X-Git-Tag: v8.0.0~3496 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aeb5d0a4e76ef133f9d453ad3832336ea3249a8;p=dealii.git Mark the conversion constructor explicit, to avoid any confusion. git-svn-id: https://svn.dealii.org/trunk@24284 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/thread_local_storage.h b/deal.II/include/deal.II/base/thread_local_storage.h index 692f267742..fe8cbe8b74 100644 --- a/deal.II/include/deal.II/base/thread_local_storage.h +++ b/deal.II/include/deal.II/base/thread_local_storage.h @@ -74,7 +74,7 @@ namespace Threads * A kind of copy constructor. Initialize each thread local object * by copying the given object. **/ - ThreadLocalStorage (const T &t); + explicit ThreadLocalStorage (const T &t); /** * Copy constructor. Initialize each thread local object @@ -119,6 +119,7 @@ namespace Threads * @return The current object, after the changes have been made **/ ThreadLocalStorage & operator = (const T &t); + private: #if DEAL_II_USE_MT == 1 /**