Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80671 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-09-23 13:14:32


Author: bruno.lalande
Date: 2012-09-23 13:14:31 EDT (Sun, 23 Sep 2012)
New Revision: 80671
URL: http://svn.boost.org/trac/boost/changeset/80671

Log:
Moved the T template param to function level in dispatch::buffer and renamed it.
Text files modified:
   trunk/boost/geometry/algorithms/buffer.hpp | 13 ++++++-------
   1 files changed, 6 insertions(+), 7 deletions(-)

Modified: trunk/boost/geometry/algorithms/buffer.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/buffer.hpp (original)
+++ trunk/boost/geometry/algorithms/buffer.hpp 2012-09-23 13:14:31 EDT (Sun, 23 Sep 2012)
@@ -75,15 +75,16 @@
 namespace dispatch
 {
 
-template <typename TagIn, typename TagOut, typename Input, typename T, typename Output>
+template <typename TagIn, typename TagOut, typename Input, typename Output>
 struct buffer {};
 
 
-template <typename BoxIn, typename T, typename BoxOut>
-struct buffer<box_tag, box_tag, BoxIn, T, BoxOut>
+template <typename BoxIn, typename BoxOut>
+struct buffer<box_tag, box_tag, BoxIn, BoxOut>
 {
- static inline void apply(BoxIn const& box_in, T const& distance,
- T const& , BoxIn& box_out)
+ template <typename Distance>
+ static inline void apply(BoxIn const& box_in, Distance const& distance,
+ Distance const& , BoxIn& box_out)
     {
         detail::buffer::buffer_box(box_in, distance, box_out);
     }
@@ -125,7 +126,6 @@
             typename tag<Input>::type,
             typename tag<Output>::type,
             Input,
- Distance,
             Output
>::apply(geometry_in, distance, chord_length, geometry_out);
 }
@@ -155,7 +155,6 @@
             typename tag<Input>::type,
             typename tag<Output>::type,
             Input,
- T,
             Output
>::apply(geometry, distance, chord_length, geometry_out);
 


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