Skip to content

Commit

Permalink
Fix build warnings from deprecated Boost headers (1.74)
Browse files Browse the repository at this point in the history
  • Loading branch information
f3nix authored and wwmayer committed Jan 2, 2021
1 parent e6032b7 commit ea6e8e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/App/Area.cpp
Expand Up @@ -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>
Expand Down
9 changes: 9 additions & 0 deletions src/boost_geometry.hpp
@@ -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

0 comments on commit ea6e8e9

Please sign in to comment.