From 60221b89f8eaf9bbf56699ddc5d4231c0a8145da Mon Sep 17 00:00:00 2001 From: "Po-Yen, Chen" Date: Wed, 13 Mar 2024 03:32:05 -0400 Subject: [PATCH] Add constraint to array<> ctor --- include/ck_tile/core/container/array.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ck_tile/core/container/array.hpp b/include/ck_tile/core/container/array.hpp index 9153d275df..687e4d881a 100644 --- a/include/ck_tile/core/container/array.hpp +++ b/include/ck_tile/core/container/array.hpp @@ -49,12 +49,16 @@ struct array data[i] = vlast; } } - template + + template || + std::is_constructible_v>> CK_TILE_HOST_DEVICE explicit constexpr array(Y c) { for(auto i = 0; i < size(); i++) data[i] = static_cast(c); } + // template // CK_TILE_HOST_DEVICE constexpr array(const array& o) // {