summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/sweep.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/sweep.hpp')
-rw-r--r--boost/geometry/algorithms/detail/sweep.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/boost/geometry/algorithms/detail/sweep.hpp b/boost/geometry/algorithms/detail/sweep.hpp
index 3dc78261f2..a8c7f9a91a 100644
--- a/boost/geometry/algorithms/detail/sweep.hpp
+++ b/boost/geometry/algorithms/detail/sweep.hpp
@@ -1,7 +1,8 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
-// Copyright (c) 2015, Oracle and/or its affiliates.
+// Copyright (c) 2023 Adam Wulkiewicz, Lodz, Poland.
+// Copyright (c) 2015, Oracle and/or its affiliates.
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
@@ -10,6 +11,8 @@
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_SWEEP_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_SWEEP_HPP
+#include <boost/geometry/util/condition.hpp>
+
#include <boost/core/ignore_unused.hpp>
@@ -56,7 +59,7 @@ inline void sweep(Range const& range, PriorityQueue& queue,
event_type event = queue.top();
queue.pop();
event_visitor.apply(event, queue);
- if (interrupt_policy.enabled && interrupt_policy.apply(event))
+ if (BOOST_GEOMETRY_CONDITION(interrupt_policy.enabled) && interrupt_policy.apply(event))
{
break;
}