From: Martin Kronbichler Date: Thu, 2 Jun 2022 07:38:40 +0000 (+0200) Subject: Use static_assert to ensure correct type X-Git-Tag: v9.4.0-rc1~81^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eee4d6508beaaa1337f43eeb2831bcfb81e4c5f;p=dealii.git Use static_assert to ensure correct type --- diff --git a/source/matrix_free/dof_info.cc b/source/matrix_free/dof_info.cc index 74bb04d153..ac7e721ff1 100644 --- a/source/matrix_free/dof_info.cc +++ b/source/matrix_free/dof_info.cc @@ -28,6 +28,13 @@ namespace internal { namespace MatrixFreeFunctions { + // ensure that the type defined in both dof_info.h and + // hanging_nodes_internal.h is consistent + static_assert(std::is_same::value, + "Unexpected type for compressed hanging node indicators!"); + + + DoFInfo::DoFInfo() { clear();