From 1c706e9b61301f1c9317c70bd1c886be2a9db6c5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 23 Jan 2025 07:03:11 -0700 Subject: [PATCH] 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. --- include/deal.II/base/complex_overloads.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5