From 135ca00b1703b0838e683282cb74de4db46cae3a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 23 Nov 2019 15:18:58 -0500 Subject: [PATCH] Avoid C-style workaround in DataOutBase --- include/deal.II/base/data_out_base.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5