Skip to content

Commit

Permalink
Merge explicit Array constructor
Browse files Browse the repository at this point in the history
This makes the Array single-argument constructor explicit to avoid accidental conversions from Executor.

Related PR: #761
  • Loading branch information
upsj authored May 6, 2021
2 parents f36ac48 + d77180c commit 7aef216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ginkgo/core/base/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Array {
*
* @param exec the Executor where the array data is allocated
*/
Array(std::shared_ptr<const Executor> exec) noexcept
explicit Array(std::shared_ptr<const Executor> exec) noexcept
: num_elems_(0),
data_(nullptr, default_deleter{exec}),
exec_(std::move(exec))
Expand Down

0 comments on commit 7aef216

Please sign in to comment.