]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark the conversion constructor explicit, to avoid any confusion.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 8 Sep 2011 00:12:07 +0000 (00:12 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 8 Sep 2011 00:12:07 +0000 (00:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@24284 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/thread_local_storage.h

index 692f26774264ebce6288ab9e5d98b0b0527dbbe7..fe8cbe8b74f12dc722cb5ff8bd3e01b6cb2bce5e 100644 (file)
@@ -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<T> & operator = (const T &t);
+
   private:
 #if DEAL_II_USE_MT == 1
     /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.