]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make constructors of Table and AlignedVector explicit 11411/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 22 Dec 2020 21:57:19 +0000 (16:57 -0500)
committerTimo Heister <timo.heister@gmail.com>
Tue, 22 Dec 2020 21:57:19 +0000 (16:57 -0500)
include/deal.II/base/aligned_vector.h
include/deal.II/base/table.h

index e83e1a7f95f4c6c62cecc40435e43a859917bd9a..3dd7b8f207827458860efbbfedb57a598d0fd5b2 100644 (file)
@@ -85,7 +85,7 @@ public:
    *
    * @dealiiOperationIsMultithreaded
    */
-  AlignedVector(const size_type size, const T &init = T());
+  explicit AlignedVector(const size_type size, const T &init = T());
 
   /**
    * Destructor.
index 20c363670297eb53f4bb04ad321db344f66f74cb..e0d8bf351f853f8fb51a8546a92b0072a65a2875 100644 (file)
@@ -418,7 +418,7 @@ public:
    * Constructor. Initialize the array with the given dimensions in each index
    * component.
    */
-  TableBase(const TableIndices<N> &sizes);
+  explicit TableBase(const TableIndices<N> &sizes);
 
   /**
    * Constructor. Initialize the array with the given dimensions in each index
@@ -716,7 +716,7 @@ public:
   /**
    * Constructor. Pass down the given dimension to the base class.
    */
-  Table(const size_type size);
+  explicit Table(const size_type size);
 
   /**
    * Constructor. Create a table with a given size and initialize it from a

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.