From 1c2f6c488f62a56aab1e40a784a08b3e5bc4ab25 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 30 Nov 2021 21:25:36 -0600 Subject: [PATCH] Boost includes: use BOOST_ALLOW_DEPRECATED_HEADERS to suppress warnings --- include/deal.II/base/bounding_box_data_out.h | 6 ++++++ include/deal.II/grid/grid_tools.h | 1 - include/deal.II/numerics/rtree.h | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/deal.II/base/bounding_box_data_out.h b/include/deal.II/base/bounding_box_data_out.h index 7469889710..6f1245dbeb 100644 --- a/include/deal.II/base/bounding_box_data_out.h +++ b/include/deal.II/base/bounding_box_data_out.h @@ -28,7 +28,13 @@ #include DEAL_II_DISABLE_EXTRA_DIAGNOSTICS +#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS +# define BOOST_ALLOW_DEPRECATED_HEADERS +#endif #include +#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS +# undef BOOST_ALLOW_DEPRECATED_HEADERS +#endif #include DEAL_II_ENABLE_EXTRA_DIAGNOSTICS diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index 8b728b5c00..f78bfce162 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -52,7 +52,6 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #include -#include #include #include #include diff --git a/include/deal.II/numerics/rtree.h b/include/deal.II/numerics/rtree.h index 1bdc1a74fe..688a44ab97 100644 --- a/include/deal.II/numerics/rtree.h +++ b/include/deal.II/numerics/rtree.h @@ -32,7 +32,13 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS * can include rtree.hpp. Otherwise a compilation error within boost * headers is encountered. */ +#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS +# define BOOST_ALLOW_DEPRECATED_HEADERS +#endif #include +#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS +# undef BOOST_ALLOW_DEPRECATED_HEADERS +#endif DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #include -- 2.39.5