]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Break the cycle of header includes between template_constraints.h and complex_overloa... 18024/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 Jan 2025 14:03:11 +0000 (07:03 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 Jan 2025 14:03:11 +0000 (07:03 -0700)
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

index 69209bf742b4a6bbf78a3c779344e4a43909165a..123ffb80d3e326ff433799bbc48224588d2e32ab 100644 (file)
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/template_constraints.h>
-
 DEAL_II_NAMESPACE_OPEN
 
-// Forward declarations
 #ifndef DOXYGEN
+
+// Forward declarations
 template <typename T, typename U>
 struct ProductType;
+
 #endif
 
 #ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.