From f5ea0d02a7012a610453135d0d924fbe16e8578b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 1 Apr 2020 15:56:39 -0400 Subject: [PATCH] remove boost/geometry.hpp from Point We are including point.h in large parts of deal.II and the boost/geometry/ header is a shortcut to include all of boost geometry. Instead, only selectively include the parts we actually need. This should speed up compilation of deal.II. --- include/deal.II/base/bounding_box.h | 5 +++++ include/deal.II/base/point.h | 3 ++- source/base/utilities.cc | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/deal.II/base/bounding_box.h b/include/deal.II/base/bounding_box.h index 9dfc5302b7..60ee0bb4a4 100644 --- a/include/deal.II/base/bounding_box.h +++ b/include/deal.II/base/bounding_box.h @@ -23,6 +23,11 @@ #include #include +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS +#include +#include +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS + DEAL_II_NAMESPACE_OPEN /** diff --git a/include/deal.II/base/point.h b/include/deal.II/base/point.h index d6a109c10e..04199d064d 100644 --- a/include/deal.II/base/point.h +++ b/include/deal.II/base/point.h @@ -23,7 +23,8 @@ #include DEAL_II_DISABLE_EXTRA_DIAGNOSTICS -#include +#include +#include DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #include diff --git a/source/base/utilities.cc b/source/base/utilities.cc index f09f322969..d809793fa9 100644 --- a/source/base/utilities.cc +++ b/source/base/utilities.cc @@ -30,6 +30,7 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include +#include #include DEAL_II_ENABLE_EXTRA_DIAGNOSTICS -- 2.39.5