mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 23:42:12 +00:00
Replicated last change in dispatch::length to multi-length and perimeter.
[SVN r80651]
This commit is contained in:
@@ -49,7 +49,6 @@ struct perimeter<ring_tag, Geometry, Strategy>
|
||||
: detail::length::range_length
|
||||
<
|
||||
Geometry,
|
||||
Strategy,
|
||||
closure<Geometry>::value
|
||||
>
|
||||
{};
|
||||
@@ -61,7 +60,6 @@ struct perimeter<polygon_tag, Polygon, Strategy> : detail::calculate_polygon_sum
|
||||
typedef detail::length::range_length
|
||||
<
|
||||
typename ring_type<Polygon>::type,
|
||||
Strategy,
|
||||
closure<Polygon>::value
|
||||
> policy;
|
||||
|
||||
|
||||
@@ -30,9 +30,10 @@ namespace boost { namespace geometry
|
||||
namespace dispatch
|
||||
{
|
||||
|
||||
template <typename MultiLinestring, typename Strategy>
|
||||
struct length<multi_linestring_tag, MultiLinestring, Strategy> : detail::multi_sum
|
||||
template <typename MultiLinestring>
|
||||
struct length<multi_linestring_tag, MultiLinestring> : detail::multi_sum
|
||||
{
|
||||
template <typename Strategy>
|
||||
static inline typename default_length_result<MultiLinestring>::type
|
||||
apply(MultiLinestring const& multi, Strategy const& strategy)
|
||||
{
|
||||
@@ -42,7 +43,6 @@ struct length<multi_linestring_tag, MultiLinestring, Strategy> : detail::multi_s
|
||||
detail::length::range_length
|
||||
<
|
||||
typename boost::range_value<MultiLinestring>::type,
|
||||
Strategy,
|
||||
closed // no need to close it explicitly
|
||||
>
|
||||
>(multi, strategy);
|
||||
|
||||
Reference in New Issue
Block a user