summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/distance/segment_to_box.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/distance/segment_to_box.hpp')
-rw-r--r--boost/geometry/algorithms/detail/distance/segment_to_box.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/boost/geometry/algorithms/detail/distance/segment_to_box.hpp b/boost/geometry/algorithms/detail/distance/segment_to_box.hpp
index 354d42bd01..09f3cc4f61 100644
--- a/boost/geometry/algorithms/detail/distance/segment_to_box.hpp
+++ b/boost/geometry/algorithms/detail/distance/segment_to_box.hpp
@@ -1,6 +1,6 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
-// Copyright (c) 2014-2021 Oracle and/or its affiliates.
+// Copyright (c) 2014-2023 Oracle and/or its affiliates.
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
@@ -91,7 +91,7 @@ private:
std::vector<box_point>,
open
> point_to_point_range;
-
+
public:
// TODO: Or should the return type be defined by sb_strategy_type?
typedef distance::return_t<box_point, Segment, Strategies> return_type;
@@ -114,7 +114,7 @@ public:
// get box points
std::vector<box_point> box_points(4);
detail::assign_box_corners_oriented<true>(box, box_points);
-
+
ps_strategy_type const strategy = strategies.distance(dummy_point(), dummy_segment());
auto const cstrategy = strategy::distance::services::get_comparable
@@ -192,7 +192,7 @@ private:
public:
// TODO: Or should the return type be defined by sb_strategy_type?
typedef distance::return_t<box_point, Segment, Strategies> return_type;
-
+
static inline return_type apply(Segment const& segment,
Box const& box,
Strategies const& strategies,
@@ -658,7 +658,7 @@ public:
BoxPoint const& bottom_right,
Strategies const& strategies)
{
- BOOST_GEOMETRY_ASSERT( (geometry::less<SegmentPoint, -1, typename Strategies::cs_tag>()(p0, p1))
+ BOOST_GEOMETRY_ASSERT( (geometry::less<SegmentPoint, -1, Strategies>()(p0, p1))
|| geometry::has_nan_coordinate(p0)
|| geometry::has_nan_coordinate(p1) );
@@ -753,7 +753,7 @@ public:
bottom_left, bottom_right,
top_left, top_right);
- typedef geometry::less<segment_point, -1, typename Strategies::cs_tag> less_type;
+ typedef geometry::less<segment_point, -1, Strategies> less_type;
if (less_type()(p[0], p[1]))
{
return segment_to_box_2D