// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
// Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
-// This file was modified by Oracle on 2013-2017.
-// Modifications copyright (c) 2013-2017, Oracle and/or its affiliates.
+// This file was modified by Oracle on 2013-2019.
+// Modifications copyright (c) 2013-2019, 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
#include <boost/geometry/algorithms/detail/assign_indexed_point.hpp>
+#include <boost/geometry/strategies/cartesian/point_in_box.hpp>
#include <boost/geometry/strategies/disjoint.hpp>
// other strategies that are used are intersection and covered_by strategies.
struct segment_box
{
- template <typename Segment, typename Box>
- struct point_in_geometry_strategy
- : services::default_strategy
- <
- typename point_type<Segment>::type,
- Box
- >
- {};
+ typedef covered_by::cartesian_point_box disjoint_point_box_strategy_type;
- template <typename Segment, typename Box>
- static inline typename point_in_geometry_strategy<Segment, Box>::type
- get_point_in_geometry_strategy()
+ static inline disjoint_point_box_strategy_type get_disjoint_point_box_strategy()
{
- typedef typename point_in_geometry_strategy<Segment, Box>::type strategy_type;
-
- return strategy_type();
+ return disjoint_point_box_strategy_type();
}
template <typename Segment, typename Box>