From 1f1089c1fea53ea1d2839fa9d205a6d2b8d74150 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 8 Sep 2011 00:12:07 +0000 Subject: [PATCH] Mark the conversion constructor explicit, to avoid any confusion. git-svn-id: https://svn.dealii.org/trunk@24284 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/thread_local_storage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 /** -- 2.39.5