From: Wolfgang Bangerth Date: Thu, 2 Sep 2021 19:26:44 +0000 (-0600) Subject: Add a static_assert to DataOutStack. X-Git-Tag: v9.4.0-rc1~1008^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8cd4146ef1a09c62fa1550d6752f6485d4ccf38;p=dealii.git Add a static_assert to DataOutStack. --- diff --git a/include/deal.II/numerics/data_out_stack.h b/include/deal.II/numerics/data_out_stack.h index 9a64917597..ea5c5f1881 100644 --- a/include/deal.II/numerics/data_out_stack.h +++ b/include/deal.II/numerics/data_out_stack.h @@ -134,7 +134,12 @@ template class DataOutStack : public DataOutInterface { - static_assert(dim == spacedim, "Not implemented for dim != spacedim."); + static_assert(dim < 3, + "Because this class stacks data into the (dim+1)st " + "dimension to create graphical output, it only works for " + "dim<3."); + static_assert(dim == spacedim, + "This class is not implemented for dim != spacedim."); public: /**