[extensions][distance] fix default_strategy extra tag

This commit is contained in:
Barend Gehrels
2014-06-02 23:04:29 +02:00
parent d10a487bec
commit dfd38081bc
5 changed files with 7 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ struct map_policy
{
typedef typename strategy::distance::services::default_strategy
<
point_tag, Point
point_tag, point_tag, Point
>::type strategy_type;
// Have a map<point, <index,start/end> > such that we can find
@@ -181,7 +181,7 @@ struct fuzzy_policy
{
typedef typename strategy::distance::services::default_strategy
<
point_tag, Point
point_tag, point_tag, Point
>::type strategy_type;
// Have a map<point, <index,start/end> > such that we can find

View File

@@ -145,7 +145,7 @@ struct close_to_segment
// Call corresponding strategy
typedef typename strategy::distance::services::default_strategy
<
segment_tag, P, PS
point_tag, segment_tag, P, PS
>::type strategy_type;
typedef typename strategy::distance::services::return_type<strategy_type, P, PS>::type return_type;

View File

@@ -198,7 +198,7 @@ struct result_from_distance<andoyer<RadiusType, CalculationType>, P1, P2>
template <typename Point1, typename Point2>
struct default_strategy<point_tag, Point1, Point2, geographic_tag, geographic_tag>
struct default_strategy<point_tag, point_tag, Point1, Point2, geographic_tag, geographic_tag>
{
typedef strategy::distance::andoyer<typename select_coordinate_type<Point1, Point2>::type> type;
};

View File

@@ -31,7 +31,7 @@ namespace services
template <typename Point, typename PointOfSegment, typename Strategy>
struct default_strategy<segment_tag, Point, PointOfSegment, geographic_tag, geographic_tag, Strategy>
struct default_strategy<point_tag, segment_tag, Point, PointOfSegment, geographic_tag, geographic_tag, Strategy>
{
typedef cross_track
<
@@ -41,7 +41,7 @@ struct default_strategy<segment_tag, Point, PointOfSegment, geographic_tag, geog
boost::is_void<Strategy>,
typename default_strategy
<
point_tag, Point, PointOfSegment,
point_tag, point_tag, Point, PointOfSegment,
geographic_tag, geographic_tag
>::type,
Strategy

View File

@@ -53,7 +53,7 @@ inline bool point_in_circle(P const& p, C const& c)
typedef typename point_type<C>::type point_type;
typedef typename services::default_strategy
<
point_tag, P, point_type
point_tag, point_tag, P, point_type
>::type strategy_type;
typedef typename services::return_type<strategy_type, P, point_type>::type return_type;