diff --git a/tests/test_mdarray_ctors.cpp b/tests/test_mdarray_ctors.cpp index 45c187ad..4b472e9d 100644 --- a/tests/test_mdarray_ctors.cpp +++ b/tests/test_mdarray_ctors.cpp @@ -294,7 +294,7 @@ TEST(TestMdarrayCtorFromMoveContainerSizes, 1d_static) { std::array d{42}; // ptr to fill, extents, is_layout_right mdarray_values<1>::fill(d.data(),Kokkos::extents(),true); - KokkosEx::mdarray, Kokkos::layout_right, std::array> m({},std::move(d)); + KokkosEx::mdarray, Kokkos::layout_right, std::array> m(Kokkos::extents{},std::move(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, nullptr, false, true); } @@ -303,7 +303,7 @@ TEST(TestMdarrayCtorFromMoveContainerSizes, 2d_static) { std::array d{42,1,2,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({},std::move(d)); + KokkosEx::mdarray, Kokkos::layout_right, std::array> m(Kokkos::extents{},std::move(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, nullptr, false, true); }