Skip to content

Commit dc8e251

Browse files
committed
Use boost version for explicity
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
1 parent 3d610df commit dc8e251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoware_utils_geometry/src/geometry/random_concave_polygon.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#include <boost/geometry/algorithms/correct.hpp>
2121
#include <boost/geometry/algorithms/intersects.hpp>
2222
#include <boost/geometry/algorithms/is_valid.hpp>
23+
#include <boost/version.hpp>
2324

2425
#include <algorithm>
2526
#include <limits>
2627
#include <list>
2728
#include <random>
2829
#include <utility>
2930
#include <vector>
30-
31-
#if __has_include(<boost/geometry/strategies/agnostic/hull_graham_andrew.hpp>) // Until Humble
31+
#if BOOST_VERSION < 107600 // Header removed in version 1.76.0 (Humble)
3232
#include <boost/geometry/strategies/agnostic/hull_graham_andrew.hpp>
3333
#endif
3434

@@ -259,7 +259,7 @@ Polygon2d inward_denting(LinearRing2d & ring)
259259
{
260260
LinearRing2d convex_ring;
261261
std::list<Point2d> q;
262-
#if __has_include(<boost/geometry/strategies/agnostic/hull_graham_andrew.hpp>) // Humble
262+
#if BOOST_VERSION < 107600 // Humble
263263
boost::geometry::strategy::convex_hull::graham_andrew<LinearRing2d, Point2d> strategy;
264264
boost::geometry::convex_hull(ring, convex_ring, strategy);
265265
#else // Jazzy+

0 commit comments

Comments
 (0)