From: Timo Heister Date: Tue, 22 Dec 2020 21:57:19 +0000 (-0500) Subject: make constructors of Table and AlignedVector explicit X-Git-Tag: v9.3.0-rc1~724^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11411%2Fhead;p=dealii.git make constructors of Table and AlignedVector explicit --- diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index e83e1a7f95..3dd7b8f207 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -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. diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 20c3636702..e0d8bf351f 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -418,7 +418,7 @@ public: * Constructor. Initialize the array with the given dimensions in each index * component. */ - TableBase(const TableIndices &sizes); + explicit TableBase(const TableIndices &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