diff --git a/include/boost/geometry/algorithms/length.hpp b/include/boost/geometry/algorithms/length.hpp index d0e8073cb..6cbec5303 100644 --- a/include/boost/geometry/algorithms/length.hpp +++ b/include/boost/geometry/algorithms/length.hpp @@ -187,7 +187,7 @@ template struct length { template - static inline typename result_of::length::type + static inline typename default_length_result::type apply(Geometry const& geometry, Strategy const& strategy) { return dispatch::length::apply(geometry, strategy); @@ -197,7 +197,7 @@ struct length template struct length > { - typedef typename result_of::length + typedef typename default_length_result < boost::variant >::type result_type; @@ -213,7 +213,7 @@ struct length > {} template - inline typename result_of::length::type + inline typename default_length_result::type operator()(Geometry const& geometry) const { return length::apply(geometry, m_strategy);