In order to work around the newest set of deprecated header warnings
(this time triggered by CGAL including a deprecated header :-(() I would
otherwise have to add this #define dance at 5 different other places.
Instead, it is cleaner to simply give up and define the macro globally.
The configure checks will ensure that the macro is only ever defined if
needed.
#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>
#include <boost/geometry/strategies/strategies.hpp>
-#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
-# undef BOOST_ALLOW_DEPRECATED_HEADERS
-#endif
DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
/* cmake/configure/configure_2_boost.cmake */
#cmakedefine DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
+#ifdef defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) && \
+ !defined(BOOST_ALLOW_DEPRECATED_HEADERS)
+# define BOOST_ALLOW_DEPRECATED_HEADERS
+#endif
/* cmake/configure/configure_2_trilinos.cmake */
#cmakedefine DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/geometry/algorithms/distance.hpp>
-
-#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
-# define BOOST_ALLOW_DEPRECATED_HEADERS
-#endif
#include <boost/geometry/index/rtree.hpp>
#include <boost/geometry/strategies/strategies.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