From 754719717ace91da647735f5e9376b760da3948d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 15 Nov 2022 07:47:03 -0700 Subject: [PATCH] Work around a strange compiler issue. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The MPI build bot complains that using a {...} initializer list would require the use of a conversion constructor marked as 'explicit': data_out_base.cc:1156:29: error: converting to ‘std::tuple’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = unsigned int&; _U2 = unsigned int&; = void; _T1 = unsigned int; _T2 = unsigned int]’ That makes no sense, but let's appease the compiler by being explicit. --- source/base/data_out_base.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index d97b43fe70..a52000ebaa 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1153,7 +1153,7 @@ namespace } } - return {n_nodes, n_cells}; + return std::tuple(n_nodes, n_cells); } @@ -1209,7 +1209,8 @@ namespace } } - return {n_nodes, n_cells, n_points_and_n_cells}; + return std::tuple( + n_nodes, n_cells, n_points_and_n_cells); } /** -- 2.39.5