Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80651 - in trunk/boost/geometry: algorithms multi/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-09-22 19:07:58


Author: bruno.lalande
Date: 2012-09-22 19:07:57 EDT (Sat, 22 Sep 2012)
New Revision: 80651
URL: http://svn.boost.org/trac/boost/changeset/80651

Log:
Replicated last change in dispatch::length to multi-length and perimeter.
Text files modified:
   trunk/boost/geometry/algorithms/perimeter.hpp | 2 --
   trunk/boost/geometry/multi/algorithms/length.hpp | 6 +++---
   2 files changed, 3 insertions(+), 5 deletions(-)

Modified: trunk/boost/geometry/algorithms/perimeter.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/perimeter.hpp (original)
+++ trunk/boost/geometry/algorithms/perimeter.hpp 2012-09-22 19:07:57 EDT (Sat, 22 Sep 2012)
@@ -49,7 +49,6 @@
     : detail::length::range_length
         <
             Geometry,
- Strategy,
             closure<Geometry>::value
>
 {};
@@ -61,7 +60,6 @@
     typedef detail::length::range_length
                 <
                     typename ring_type<Polygon>::type,
- Strategy,
                     closure<Polygon>::value
> policy;
 

Modified: trunk/boost/geometry/multi/algorithms/length.hpp
==============================================================================
--- trunk/boost/geometry/multi/algorithms/length.hpp (original)
+++ trunk/boost/geometry/multi/algorithms/length.hpp 2012-09-22 19:07:57 EDT (Sat, 22 Sep 2012)
@@ -30,9 +30,10 @@
 namespace dispatch
 {
 
-template <typename MultiLinestring, typename Strategy>
-struct length<multi_linestring_tag, MultiLinestring, Strategy> : detail::multi_sum
+template <typename MultiLinestring>
+struct length<multi_linestring_tag, MultiLinestring> : detail::multi_sum
 {
+ template <typename Strategy>
     static inline typename default_length_result<MultiLinestring>::type
     apply(MultiLinestring const& multi, Strategy const& strategy)
     {
@@ -42,7 +43,6 @@
                    detail::length::range_length
                    <
                        typename boost::range_value<MultiLinestring>::type,
- Strategy,
                        closed // no need to close it explicitly
>
>(multi, strategy);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk