diff --git a/include/boost/geometry/algorithms/perimeter.hpp b/include/boost/geometry/algorithms/perimeter.hpp index 4f9dd0397..ba233cedc 100644 --- a/include/boost/geometry/algorithms/perimeter.hpp +++ b/include/boost/geometry/algorithms/perimeter.hpp @@ -49,7 +49,6 @@ struct perimeter : detail::length::range_length < Geometry, - Strategy, closure::value > {}; @@ -61,7 +60,6 @@ struct perimeter : detail::calculate_polygon_sum typedef detail::length::range_length < typename ring_type::type, - Strategy, closure::value > policy; diff --git a/include/boost/geometry/multi/algorithms/length.hpp b/include/boost/geometry/multi/algorithms/length.hpp index 99556b620..4ac0cf4e6 100644 --- a/include/boost/geometry/multi/algorithms/length.hpp +++ b/include/boost/geometry/multi/algorithms/length.hpp @@ -30,9 +30,10 @@ namespace boost { namespace geometry namespace dispatch { -template -struct length : detail::multi_sum +template +struct length : detail::multi_sum { + template static inline typename default_length_result::type apply(MultiLinestring const& multi, Strategy const& strategy) { @@ -42,7 +43,6 @@ struct length : detail::multi_s detail::length::range_length < typename boost::range_value::type, - Strategy, closed // no need to close it explicitly > >(multi, strategy);