summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp')
-rw-r--r--boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp b/boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp
index 3e6a8897f5..2003d2350d 100644
--- a/boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp
+++ b/boost/geometry/algorithms/detail/overlay/calculate_distance_policy.hpp
@@ -32,9 +32,18 @@ struct calculate_distance_policy
{
static bool const include_no_turn = false;
static bool const include_degenerate = false;
-
- template <typename Point1, typename Point2, typename Info>
- static inline void apply(Info& info, Point1 const& p1, Point2 const& p2)
+ static bool const include_opposite = false;
+
+ template
+ <
+ typename Info,
+ typename Point1,
+ typename Point2,
+ typename IntersectionInfo,
+ typename DirInfo
+ >
+ static inline void apply(Info& info, Point1 const& p1, Point2 const& p2,
+ IntersectionInfo const&, DirInfo const&)
{
info.operations[0].enriched.distance
= geometry::comparable_distance(info.point, p1);