Fix build warnings from deprecated Boost headers (1.74)
This commit is contained in:
committed by
wwmayer
parent
e6032b7d53
commit
ea6e8e9906
@@ -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
9
src/boost_geometry.hpp
Normal 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
|
||||
Reference in New Issue
Block a user