Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75296 - trunk/boost/geometry/extensions/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-11-04 06:22:39


Author: barendgehrels
Date: 2011-11-04 06:22:38 EDT (Fri, 04 Nov 2011)
New Revision: 75296
URL: http://svn.boost.org/trac/boost/changeset/75296

Log:
Fixed dissolve issue by using own policy
Text files modified:
   trunk/boost/geometry/extensions/algorithms/dissolve.hpp | 16 +++++++++++++++-
   1 files changed, 15 insertions(+), 1 deletions(-)

Modified: trunk/boost/geometry/extensions/algorithms/dissolve.hpp
==============================================================================
--- trunk/boost/geometry/extensions/algorithms/dissolve.hpp (original)
+++ trunk/boost/geometry/extensions/algorithms/dissolve.hpp 2011-11-04 06:22:38 EDT (Fri, 04 Nov 2011)
@@ -46,6 +46,20 @@
 namespace detail { namespace dissolve
 {
 
+struct no_interrupt_policy
+{
+ static bool const enabled = false;
+ static bool const has_intersections = false;
+
+
+ template <typename Range>
+ static inline bool apply(Range const&)
+ {
+ return false;
+ }
+};
+
+
 template<typename Geometry>
 class backtrack_for_dissolve
 {
@@ -91,7 +105,7 @@
> turn_info;
 
         std::vector<turn_info> turns;
- detail::get_turns::no_interrupt_policy policy;
+ detail::dissolve::no_interrupt_policy policy;
         geometry::self_turns
             <
                 detail::overlay::calculate_distance_policy


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