Fix build warnings from deprecated Boost headers (1.74)

This commit is contained in:
Mateusz Skowroński
2021-01-01 10:52:17 +01:00
committed by wwmayer
parent e6032b7d53
commit ea6e8e9906
2 changed files with 10 additions and 1 deletions

View File

@@ -35,7 +35,7 @@
# include "boost_fix/intrusive/detail/memory_util.hpp"
# include "boost_fix/container/detail/memory_util.hpp"
# endif
# include <boost/geometry.hpp>
# include <boost_geometry.hpp>
# include <boost/geometry/index/rtree.hpp>
# include <boost/geometry/geometries/geometries.hpp>
# include <boost/geometry/geometries/register/point.hpp>

9
src/boost_geometry.hpp Normal file
View File

@@ -0,0 +1,9 @@
#ifndef FREECAD_GEOMETRY_HPP_WORKAROUND
#define FREECAD_GEOMETRY_HPP_WORKAROUND
// Workaround for boost >= 1.74
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/geometry.hpp>
#undef BOOST_ALLOW_DEPRECATED_HEADERS
#endif // #ifndef FREECAD_GEOMETRY_HPP_WORKAROUND