From: Wolfgang Bangerth Date: Thu, 23 Jan 2025 14:03:11 +0000 (-0700) Subject: Break the cycle of header includes between template_constraints.h and complex_overloa... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18024%2Fhead;p=dealii.git Break the cycle of header includes between template_constraints.h and complex_overloads.h. We do not ever directly include complex_overloads.h, from anywhere except template_constraints.h. As a consequence, the include of template_constraints.h in complex_overloads.h always expands into nothing (because of the header guard in template_constraints.h) and it is safe to remove the include in complex_overloads.h. --- diff --git a/include/deal.II/base/complex_overloads.h b/include/deal.II/base/complex_overloads.h index 69209bf742..123ffb80d3 100644 --- a/include/deal.II/base/complex_overloads.h +++ b/include/deal.II/base/complex_overloads.h @@ -17,14 +17,14 @@ #include -#include - DEAL_II_NAMESPACE_OPEN -// Forward declarations #ifndef DOXYGEN + +// Forward declarations template struct ProductType; + #endif #ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS