Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68712 - in trunk/boost/geometry/extensions/algorithms: . buffer
From: barend.gehrels_at_[hidden]
Date: 2011-02-08 07:01:25


Author: barendgehrels
Date: 2011-02-08 07:01:23 EST (Tue, 08 Feb 2011)
New Revision: 68712
URL: http://svn.boost.org/trac/boost/changeset/68712

Log:
Small fixes in extensions
Text files modified:
   trunk/boost/geometry/extensions/algorithms/buffer/linestring_buffer.hpp | 2 +-
   trunk/boost/geometry/extensions/algorithms/remove_holes_if.hpp | 10 ++++++++--
   2 files changed, 9 insertions(+), 3 deletions(-)

Modified: trunk/boost/geometry/extensions/algorithms/buffer/linestring_buffer.hpp
==============================================================================
--- trunk/boost/geometry/extensions/algorithms/buffer/linestring_buffer.hpp (original)
+++ trunk/boost/geometry/extensions/algorithms/buffer/linestring_buffer.hpp 2011-02-08 07:01:23 EST (Tue, 08 Feb 2011)
@@ -44,7 +44,7 @@
 {
     typedef typename coordinate_type<Polygon>::type coordinate_type;
     typedef typename point_type<Polygon>::type output_point_type;
- typedef segment<output_point_type const> segment_type;
+ typedef model::referring_segment<output_point_type const> segment_type;
 
 #ifdef BOOST_GEOMETRY_DEBUG_WITH_MAPPER
     typedef typename ring_type<Polygon>::type ring_type;

Modified: trunk/boost/geometry/extensions/algorithms/remove_holes_if.hpp
==============================================================================
--- trunk/boost/geometry/extensions/algorithms/remove_holes_if.hpp (original)
+++ trunk/boost/geometry/extensions/algorithms/remove_holes_if.hpp 2011-02-08 07:01:23 EST (Tue, 08 Feb 2011)
@@ -125,7 +125,10 @@
     inline bool operator()(Ring const& ring) const
     {
         if (ring.size() >=
- core_detail::closure::minimum_ring_size<Closure>::value)
+ core_detail::closure::minimum_ring_size
+ <
+ geometry::closure<Ring>::value
+ >::value)
         {
             double a = area(ring);
             double p = perimeter(ring);
@@ -146,7 +149,10 @@
     inline bool operator()(Ring const& ring) const
     {
         return ring.size()
- < core_detail::closure::minimum_ring_size<Closure>::value;
+ < core_detail::closure::minimum_ring_size
+ <
+ geometry::closure<Ring>::value
+ >::value;
     }
 };
 


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