From 7f5b0233e60cf41bd42410959ad4b59b8a24995c Mon Sep 17 00:00:00 2001 From: Bruno Lalande Date: Sun, 26 Aug 2012 23:33:14 +0000 Subject: [PATCH] Made dispatch::unique able to retrieve the tag by itself. [SVN r80245] --- include/boost/geometry/algorithms/unique.hpp | 16 ++++++---------- .../boost/geometry/multi/algorithms/unique.hpp | 4 ++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/include/boost/geometry/algorithms/unique.hpp b/include/boost/geometry/algorithms/unique.hpp index c911f382d..e11dc13c4 100644 --- a/include/boost/geometry/algorithms/unique.hpp +++ b/include/boost/geometry/algorithms/unique.hpp @@ -84,8 +84,8 @@ namespace dispatch template < - typename Tag, - typename Geometry + typename Geometry, + typename Tag = typename tag::type > struct unique { @@ -96,19 +96,19 @@ struct unique template -struct unique +struct unique : detail::unique::range_unique {}; template -struct unique +struct unique : detail::unique::range_unique {}; template -struct unique +struct unique : detail::unique::polygon_unique {}; @@ -138,11 +138,7 @@ inline void unique(Geometry& geometry) > policy; - dispatch::unique - < - typename tag::type, - Geometry - >::apply(geometry, policy()); + dispatch::unique::apply(geometry, policy()); } }} // namespace boost::geometry diff --git a/include/boost/geometry/multi/algorithms/unique.hpp b/include/boost/geometry/multi/algorithms/unique.hpp index 36dc559e8..bda2234a6 100644 --- a/include/boost/geometry/multi/algorithms/unique.hpp +++ b/include/boost/geometry/multi/algorithms/unique.hpp @@ -64,13 +64,13 @@ namespace dispatch template -struct unique +struct unique : detail::unique::multi_unique {}; template -struct unique +struct unique : detail::unique::multi_unique {};