From 2fca9163085e53a5e6c210f2fc9dcec8fa1d6018 Mon Sep 17 00:00:00 2001 From: Bruno Lalande Date: Sat, 22 Sep 2012 23:07:57 +0000 Subject: [PATCH] Replicated last change in dispatch::length to multi-length and perimeter. [SVN r80651] --- include/boost/geometry/algorithms/perimeter.hpp | 2 -- include/boost/geometry/multi/algorithms/length.hpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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);