Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76053 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2011-12-18 18:22:36


Author: bruno.lalande
Date: 2011-12-18 18:22:35 EST (Sun, 18 Dec 2011)
New Revision: 76053
URL: http://svn.boost.org/trac/boost/changeset/76053

Log:
Made dispatch::append able to find the range tag by itself.
Text files modified:
   trunk/boost/geometry/algorithms/append.hpp | 9 ++++++---
   1 files changed, 6 insertions(+), 3 deletions(-)

Modified: trunk/boost/geometry/algorithms/append.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/append.hpp (original)
+++ trunk/boost/geometry/algorithms/append.hpp 2011-12-18 18:22:35 EST (Sun, 18 Dec 2011)
@@ -178,14 +178,18 @@
 
 
 // Default: append a range (or linestring or ring or whatever) to any geometry
-template <typename TagRangeOrPoint, typename Geometry, typename RangeOrPoint>
+template
+<
+ typename Geometry, typename RangeOrPoint,
+ typename TagRangeOrPoint = typename tag<RangeOrPoint>::type
+>
 struct append
     : splitted_dispatch::append_range<typename tag<Geometry>::type, Geometry, RangeOrPoint>
 {};
 
 // Specialization for point to append a point to any geometry
 template <typename Geometry, typename RangeOrPoint>
-struct append<point_tag, Geometry, RangeOrPoint>
+struct append<Geometry, RangeOrPoint, point_tag>
     : splitted_dispatch::append_point<typename tag<Geometry>::type, Geometry, RangeOrPoint>
 {};
 
@@ -217,7 +221,6 @@
 
     dispatch::append
         <
- typename tag<RangeOrPoint>::type,
             Geometry,
             RangeOrPoint
>::apply(geometry, range_or_point, ring_index, multi_index);


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