diff --git a/include/boost/geometry/algorithms/distance.hpp b/include/boost/geometry/algorithms/distance.hpp index 0b617d39c..ee64bdc5b 100644 --- a/include/boost/geometry/algorithms/distance.hpp +++ b/include/boost/geometry/algorithms/distance.hpp @@ -323,7 +323,7 @@ struct distance { typedef typename detail::distance::default_strategy::type Strategy; - static inline typename return_type::type apply( + static inline typename strategy::distance::services::return_type::type apply( Geometry1 const& g1, Geometry2 const& g2, Strategy const& strategy)