[algorithms] Fix the type of returned Range/Ring in sub_range(Polygon).

This commit is contained in:
Adam Wulkiewicz
2015-03-09 16:05:29 +01:00
parent e6d4997061
commit 666837bcb9

View File

@@ -44,7 +44,7 @@ struct sub_range<Geometry, Tag, false>
template <typename Geometry>
struct sub_range<Geometry, polygon_tag, false>
{
typedef typename geometry::ring_type<Geometry>::type & return_type;
typedef typename geometry::ring_return_type<Geometry>::type return_type;
template <typename Id> static inline
return_type apply(Geometry & geometry, Id const& id)