]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Boost includes: use BOOST_ALLOW_DEPRECATED_HEADERS to suppress warnings
authorMatthias Maier <tamiko@43-1.org>
Wed, 1 Dec 2021 03:25:36 +0000 (21:25 -0600)
committerDavid Wells <drwells@email.unc.edu>
Thu, 6 Jan 2022 15:28:39 +0000 (10:28 -0500)
include/deal.II/base/bounding_box_data_out.h
include/deal.II/grid/grid_tools.h
include/deal.II/numerics/rtree.h

index 2dd9738de494e32b8f59326a0c35f3bbf4b0d807..9fb382ff1ea48f009bcd1eddd6f29d8c046fcaec 100644 (file)
 #include <deal.II/boost_adaptors/segment.h>
 
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
+#  define BOOST_ALLOW_DEPRECATED_HEADERS
+#endif
 #include <boost/geometry/index/rtree.hpp>
+#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
+#  undef BOOST_ALLOW_DEPRECATED_HEADERS
+#endif
 #include <boost/geometry/strategies/strategies.hpp>
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
index 83b79d759df17ae60df494db3019e606eade0db0..54592d76ba256408a3598771ca5bdf53e5359d98 100644 (file)
@@ -51,7 +51,6 @@
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <boost/archive/binary_iarchive.hpp>
 #  include <boost/archive/binary_oarchive.hpp>
-#  include <boost/geometry/index/rtree.hpp>
 #  include <boost/random/mersenne_twister.hpp>
 #  include <boost/serialization/array.hpp>
 #  include <boost/serialization/vector.hpp>
index d885d8cbc2d6a222a3a887f91c3bf3b8d2a20f3d..32fbca762102cdf7bd85a991e502edc3debda7b0 100644 (file)
@@ -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 <boost/geometry/index/rtree.hpp>
+#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
+#  undef BOOST_ALLOW_DEPRECATED_HEADERS
+#endif
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <memory>

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.