|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80673 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-09-23 14:14:45
Author: bruno.lalande
Date: 2012-09-23 14:14:44 EDT (Sun, 23 Sep 2012)
New Revision: 80673
URL: http://svn.boost.org/trac/boost/changeset/80673
Log:
Made dispatch::buffer able to retrieve the tags by itself.
Text files modified:
trunk/boost/geometry/algorithms/buffer.hpp | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
Modified: trunk/boost/geometry/algorithms/buffer.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/buffer.hpp (original)
+++ trunk/boost/geometry/algorithms/buffer.hpp 2012-09-23 14:14:44 EDT (Sun, 23 Sep 2012)
@@ -75,12 +75,18 @@
namespace dispatch
{
-template <typename TagIn, typename TagOut, typename Input, typename Output>
+template
+<
+ typename Input,
+ typename Output,
+ typename TagIn = typename tag<Input>::type,
+ typename TagOut = typename tag<Output>::type
+>
struct buffer {};
template <typename BoxIn, typename BoxOut>
-struct buffer<box_tag, box_tag, BoxIn, BoxOut>
+struct buffer<BoxIn, BoxOut, box_tag, box_tag>
{
template <typename Distance>
static inline void apply(BoxIn const& box_in, Distance const& distance,
@@ -123,8 +129,6 @@
dispatch::buffer
<
- typename tag<Input>::type,
- typename tag<Output>::type,
Input,
Output
>::apply(geometry_in, distance, chord_length, geometry_out);
@@ -152,8 +156,6 @@
dispatch::buffer
<
- typename tag<Input>::type,
- typename tag<Output>::type,
Input,
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