From: Daniel Arndt Date: Sat, 23 Nov 2019 20:18:58 +0000 (-0500) Subject: Avoid C-style workaround in DataOutBase X-Git-Tag: v9.2.0-rc1~856^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135ca00b1703b0838e683282cb74de4db46cae3a;p=dealii.git Avoid C-style workaround in DataOutBase --- diff --git a/include/deal.II/base/data_out_base.h b/include/deal.II/base/data_out_base.h index 324721d10c..e17f86261b 100644 --- a/include/deal.II/base/data_out_base.h +++ b/include/deal.II/base/data_out_base.h @@ -269,10 +269,9 @@ namespace DataOutBase /** * Patch indices of neighbors of the current patch. This is made available * for the OpenDX format that requires neighbor - * information for advanced output. For dim==0 we still allow one - * neighbor, to avoid compiler warnings about zero-sized arrays. + * information for advanced output. */ - unsigned int neighbors[dim > 0 ? GeometryInfo::faces_per_cell : 1]; + std::array::faces_per_cell> neighbors; /** * Number of this patch. Since we are not sure patches are always