mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-13 12:32:09 +00:00
Made dispatch::unique able to retrieve the tag by itself.
[SVN r80245]
This commit is contained in:
@@ -84,8 +84,8 @@ namespace dispatch
|
||||
|
||||
template
|
||||
<
|
||||
typename Tag,
|
||||
typename Geometry
|
||||
typename Geometry,
|
||||
typename Tag = typename tag<Geometry>::type
|
||||
>
|
||||
struct unique
|
||||
{
|
||||
@@ -96,19 +96,19 @@ struct unique
|
||||
|
||||
|
||||
template <typename Ring>
|
||||
struct unique<ring_tag, Ring>
|
||||
struct unique<Ring, ring_tag>
|
||||
: detail::unique::range_unique
|
||||
{};
|
||||
|
||||
|
||||
template <typename LineString>
|
||||
struct unique<linestring_tag, LineString>
|
||||
struct unique<LineString, linestring_tag>
|
||||
: detail::unique::range_unique
|
||||
{};
|
||||
|
||||
|
||||
template <typename Polygon>
|
||||
struct unique<polygon_tag, Polygon>
|
||||
struct unique<Polygon, polygon_tag>
|
||||
: detail::unique::polygon_unique
|
||||
{};
|
||||
|
||||
@@ -138,11 +138,7 @@ inline void unique(Geometry& geometry)
|
||||
> policy;
|
||||
|
||||
|
||||
dispatch::unique
|
||||
<
|
||||
typename tag<Geometry>::type,
|
||||
Geometry
|
||||
>::apply(geometry, policy());
|
||||
dispatch::unique<Geometry>::apply(geometry, policy());
|
||||
}
|
||||
|
||||
}} // namespace boost::geometry
|
||||
|
||||
@@ -64,13 +64,13 @@ namespace dispatch
|
||||
|
||||
|
||||
template <typename MultiLineString>
|
||||
struct unique<multi_linestring_tag, MultiLineString>
|
||||
struct unique<MultiLineString, multi_linestring_tag>
|
||||
: detail::unique::multi_unique<detail::unique::range_unique>
|
||||
{};
|
||||
|
||||
|
||||
template <typename MultiPolygon>
|
||||
struct unique<multi_polygon_tag, MultiPolygon>
|
||||
struct unique<MultiPolygon, multi_polygon_tag>
|
||||
: detail::unique::multi_unique<detail::unique::polygon_unique>
|
||||
{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user