From 1c164b49d0e1e5cf72140761c869019117cecdf3 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 22 Dec 2020 16:57:19 -0500 Subject: [PATCH] make constructors of Table and AlignedVector explicit --- include/deal.II/base/aligned_vector.h | 2 +- include/deal.II/base/table.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5