Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80242 - in trunk/boost/geometry/algorithms: . detail/overlay
From: bruno.lalande_at_[hidden]
Date: 2012-08-26 18:39:17


Author: bruno.lalande
Date: 2012-08-26 18:39:16 EDT (Sun, 26 Aug 2012)
New Revision: 80242
URL: http://svn.boost.org/trac/boost/changeset/80242

Log:
Moved OutputIterator template param from class to function level in dispatch::union.
Text files modified:
   trunk/boost/geometry/algorithms/detail/overlay/intersection_insert.hpp | 4 ++--
   trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp | 4 ++--
   trunk/boost/geometry/algorithms/union.hpp | 30 ++++++++++--------------------
   3 files changed, 14 insertions(+), 24 deletions(-)

Modified: trunk/boost/geometry/algorithms/detail/overlay/intersection_insert.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/intersection_insert.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/intersection_insert.hpp 2012-08-26 18:39:16 EDT (Sun, 26 Aug 2012)
@@ -263,7 +263,7 @@
         OverlayType,
         Strategy
> : detail::overlay::overlay
- <Geometry1, Geometry2, Reverse1, Reverse2, ReverseOut, OutputIterator, GeometryOut, OverlayType>
+ <Geometry1, Geometry2, Reverse1, Reverse2, ReverseOut, GeometryOut, OverlayType>
 {};
 
 
@@ -288,7 +288,7 @@
         OverlayType,
         Strategy
> : detail::overlay::overlay
- <Geometry, Box, Reverse1, Reverse2, ReverseOut, OutputIterator, GeometryOut, OverlayType>
+ <Geometry, Box, Reverse1, Reverse2, ReverseOut, GeometryOut, OverlayType>
 {};
 
 

Modified: trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp 2012-08-26 18:39:16 EDT (Sun, 26 Aug 2012)
@@ -134,12 +134,12 @@
 <
     typename Geometry1, typename Geometry2,
     bool Reverse1, bool Reverse2, bool ReverseOut,
- typename OutputIterator, typename GeometryOut,
+ typename GeometryOut,
     overlay_type Direction
>
 struct overlay
 {
- template <typename Strategy>
+ template <typename OutputIterator, typename Strategy>
     static inline OutputIterator apply(
                 Geometry1 const& geometry1, Geometry2 const& geometry2,
                 OutputIterator out,

Modified: trunk/boost/geometry/algorithms/union.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/union.hpp (original)
+++ trunk/boost/geometry/algorithms/union.hpp 2012-08-26 18:39:16 EDT (Sun, 26 Aug 2012)
@@ -28,9 +28,7 @@
 
 template
 <
- typename Geometry1, typename Geometry2,
- typename OutputIterator,
- typename GeometryOut,
+ typename Geometry1, typename Geometry2, typename GeometryOut,
     typename TagIn1 = typename tag<Geometry1>::type,
     typename TagIn2 = typename tag<Geometry2>::type,
     typename TagOut = typename tag<GeometryOut>::type,
@@ -56,31 +54,27 @@
 
 template
 <
- typename Geometry1, typename Geometry2,
- typename OutputIterator,
- typename GeometryOut,
+ typename Geometry1, typename Geometry2, typename GeometryOut,
     typename TagIn1, typename TagIn2, typename TagOut,
     bool Reverse1, bool Reverse2, bool ReverseOut
>
 struct union_insert
     <
- Geometry1, Geometry2,
- OutputIterator, GeometryOut,
+ Geometry1, Geometry2, GeometryOut,
         TagIn1, TagIn2, TagOut,
         true, true, true,
         Reverse1, Reverse2, ReverseOut,
         true
- >: union_insert<Geometry2, Geometry1, OutputIterator, GeometryOut>
+ >: union_insert<Geometry2, Geometry1, GeometryOut>
 {
- template <typename Strategy>
+ template <typename OutputIterator, typename Strategy>
     static inline OutputIterator apply(Geometry1 const& g1,
             Geometry2 const& g2, OutputIterator out,
             Strategy const& strategy)
     {
         return union_insert
             <
- Geometry2, Geometry1,
- OutputIterator, GeometryOut
+ Geometry2, Geometry1, GeometryOut
>::apply(g2, g1, out, strategy);
     }
 };
@@ -88,22 +82,19 @@
 
 template
 <
- typename Geometry1, typename Geometry2,
- typename OutputIterator,
- typename GeometryOut,
+ typename Geometry1, typename Geometry2, typename GeometryOut,
     typename TagIn1, typename TagIn2, typename TagOut,
     bool Reverse1, bool Reverse2, bool ReverseOut
>
 struct union_insert
     <
- Geometry1, Geometry2,
- OutputIterator, GeometryOut,
+ Geometry1, Geometry2, GeometryOut,
         TagIn1, TagIn2, TagOut,
         true, true, true,
         Reverse1, Reverse2, ReverseOut,
         false
> : detail::overlay::overlay
- <Geometry1, Geometry2, Reverse1, Reverse2, ReverseOut, OutputIterator, GeometryOut, overlay_union>
+ <Geometry1, Geometry2, Reverse1, Reverse2, ReverseOut, GeometryOut, overlay_union>
 {};
 
 
@@ -128,8 +119,7 @@
 {
     return dispatch::union_insert
            <
- Geometry1, Geometry2,
- OutputIterator, GeometryOut
+ Geometry1, Geometry2, GeometryOut
>::apply(geometry1, geometry2, out, 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