Skip to content

Commit

Permalink
kokkos#295: fix more ambiguous constructor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Nov 10, 2023
1 parent 10df9bf commit 9d00275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_mdarray_ctors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ TEST(TestMdarrayCtorWithPMR, 2d_mixed) {
// Construct from container only
TEST(TestMdarrayCtorDataStdArray, test_mdarray_ctor_data_carray) {
std::array<int, 1> d = {42};
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::array<int, 1>> m({}, d);
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::array<int, 1>> m(Kokkos::extents<int, 1>{}, d);
ASSERT_EQ(m.rank(), 1);
ASSERT_EQ(m.rank_dynamic(), 0);
ASSERT_EQ(m.extent(0), 1);
Expand All @@ -494,7 +494,7 @@ TEST(TestMdarrayCtorDataStdArray, test_mdarray_ctor_data_carray) {

TEST(TestMdarrayCtorDataVector, test_mdarray_ctor_data_carray) {
std::vector<int> d = {42};
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::vector<int>> m({}, d);
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::vector<int>> m(Kokkos::extents<int, 1>{}, d);
ASSERT_EQ(m.rank(), 1);
ASSERT_EQ(m.rank_dynamic(), 0);
ASSERT_EQ(m.extent(0), 1);
Expand Down

0 comments on commit 9d00275

Please sign in to comment.