From: Wolfgang Bangerth Date: Tue, 15 Nov 2022 14:47:03 +0000 (-0700) Subject: Work around a strange compiler issue. X-Git-Tag: v9.5.0-rc1~843^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754719717ace91da647735f5e9376b760da3948d;p=dealii.git Work around a strange compiler issue. 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. --- 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); } /**