From 3bd4eaecf2a5a00b4988c62e7ba73e9d69af7a2c Mon Sep 17 00:00:00 2001 From: Nicolas Morales Date: Fri, 10 Nov 2023 10:37:21 -0800 Subject: [PATCH] #295: fix ambiguous constructor usage --- tests/test_mdarray_ctors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_mdarray_ctors.cpp b/tests/test_mdarray_ctors.cpp index b9aa4d76..45c187ad 100644 --- a/tests/test_mdarray_ctors.cpp +++ b/tests/test_mdarray_ctors.cpp @@ -248,7 +248,7 @@ TEST(TestMdarrayCtorFromContainerSizes, 1d_static) { using mda_t = KokkosEx::mdarray, Kokkos::layout_right, std::array>; // ptr to fill, extents, is_layout_right mdarray_values<1>::fill(d.data(),Kokkos::extents(),true); - mda_t m({}, d); + mda_t m(Kokkos::extents{}, d); // mdarray, rank, rank_dynamic, ext0, ext1, ext2, stride0, stride1, stride2, ptr, ptr_matches, exhaustive check_correctness(m, 1, 0, 1, 0, 0, 1, 0, 0, d.data(), false, true); } @@ -257,7 +257,7 @@ TEST(TestMdarrayCtorFromContainerSizes, 2d_static) { std::array d{42,43,44,3,4,41}; // ptr to fill, extents, is_layout_right mdarray_values<2>::fill(d.data(),Kokkos::extents(),true); - KokkosEx::mdarray, Kokkos::layout_right, std::array> m({},d); + KokkosEx::mdarray, Kokkos::layout_right, std::array> m(Kokkos::extents{},d); // mdarray, rank, rank_dynamic, ext0, ext1, ext2, stride0, stride1, stride2, ptr, ptr_matches, exhaustive check_correctness(m, 2, 0, 2, 3, 0, 3, 1, 0, d.data(), false, true); }