From d77180cfc5377377ce464e5a1098ca56c6b86467 Mon Sep 17 00:00:00 2001 From: Tobias Ribizel Date: Thu, 6 May 2021 10:27:49 +0200 Subject: [PATCH] make array constructor explicit --- include/ginkgo/core/base/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ginkgo/core/base/array.hpp b/include/ginkgo/core/base/array.hpp index b7f31529da9..c9f4aaa57c4 100644 --- a/include/ginkgo/core/base/array.hpp +++ b/include/ginkgo/core/base/array.hpp @@ -122,7 +122,7 @@ class Array { * * @param exec the Executor where the array data is allocated */ - Array(std::shared_ptr exec) noexcept + explicit Array(std::shared_ptr exec) noexcept : num_elems_(0), data_(nullptr, default_deleter{exec}), exec_(std::move(exec))