From 4598228ea0dee4e7cfc1a66883e4ae52612a621e Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Thu, 8 May 2014 23:50:28 +0300 Subject: [PATCH] [distance] re-implement the default strategy type in free function distance(g1, g2); remove inclusion of unused headers; --- include/boost/geometry/algorithms/distance.hpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/include/boost/geometry/algorithms/distance.hpp b/include/boost/geometry/algorithms/distance.hpp index 8f5ececdf..929a9370d 100644 --- a/include/boost/geometry/algorithms/distance.hpp +++ b/include/boost/geometry/algorithms/distance.hpp @@ -21,16 +21,13 @@ #define BOOST_GEOMETRY_ALGORITHMS_DISTANCE_HPP #include -#include #include -#include #include #include #include #include -#include #include #include @@ -183,19 +180,10 @@ inline typename default_distance_result::type distance( concept::check(); concept::check(); - typedef typename boost::mpl::if_c + typedef typename detail::distance::default_strategy < - geometry::reverse_dispatch::type::value, - typename detail::distance::default_strategy - < - Geometry2, Geometry1 - >::type, - typename detail::distance::default_strategy - < - Geometry1, Geometry2 - >::type + Geometry1, Geometry2 >::type default_strategy_type; - return distance(geometry1, geometry2, default_strategy_type()); }