From a10beb2f09d10de5b3e99252ad64a5e82cef4f4d Mon Sep 17 00:00:00 2001 From: "Yu-Hsiang M. Tsai" Date: Wed, 8 May 2024 14:33:36 +0200 Subject: [PATCH] fix ambiguous on empty constructor --- test/mpi/matrix.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/mpi/matrix.cpp b/test/mpi/matrix.cpp index 83ecc4ee740..6b4e92a87bf 100644 --- a/test/mpi/matrix.cpp +++ b/test/mpi/matrix.cpp @@ -216,9 +216,12 @@ TYPED_TEST(MatrixCreation, BuildFromExistingData) auto rank = this->comm.rank(); I> res_local[] = {{{2, 0}, {0, 0}}, {{0, 5}, {0, 0}}, {{0}}}; std::array, 3> size_local{{{2, 2}, {2, 2}, {1, 1}}}; - std::array dist_input_local{{{size_local[0], {{0, 0, 2}}}, - {size_local[1], {{0, 1, 5}}}, - {size_local[2], {{}}}}}; + std::array dist_input_local{ + {{size_local[0], {{0, 0, 2}}}, + {size_local[1], {{0, 1, 5}}}, + {size_local[2], + std::initializer_list< + gko::detail::input_triple>{}}}}; I> res_non_local[] = { {{1, 0}, {3, 4}}, {{0, 0, 6}, {8, 7, 0}}, {{10, 9}}}; std::array, 3> size_non_local{{{2, 2}, {2, 3}, {1, 2}}};