Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67769 - trunk/boost/geometry/algorithms/detail/overlay
From: barend.gehrels_at_[hidden]
Date: 2011-01-08 04:59:24


Author: barendgehrels
Date: 2011-01-08 04:59:22 EST (Sat, 08 Jan 2011)
New Revision: 67769
URL: http://svn.boost.org/trac/boost/changeset/67769

Log:
Changed m_clustered into pointer for clang (forbidding mutable ref's)
Text files modified:
   trunk/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp 2011-01-08 04:59:22 EST (Sat, 08 Jan 2011)
@@ -89,7 +89,7 @@
             , Geometry1 const& geometry1
             , Geometry2 const& geometry2
             , Strategy const& strategy
- , bool& clustered)
+ , bool* clustered)
         : m_turn_points(turn_points)
         , m_geometry1(geometry1)
         , m_geometry2(geometry2)
@@ -104,7 +104,7 @@
     Geometry1 const& m_geometry1;
     Geometry2 const& m_geometry2;
     Strategy const& m_strategy;
- mutable bool& m_clustered;
+ mutable bool* m_clustered;
 
     inline bool consider_relative_order(Indexed const& left,
                     Indexed const& right) const
@@ -155,7 +155,7 @@
 
             // If that is not the case, cluster it later on.
             // Indicate that this is necessary.
- m_clustered = true;
+ *m_clustered = true;
 
             return left.index < right.index;
         }
@@ -220,7 +220,7 @@
                         Geometry1, Geometry2,
                         Reverse1, Reverse2,
                         Strategy
- >(turn_points, geometry1, geometry2, strategy, clustered));
+ >(turn_points, geometry1, geometry2, strategy, &clustered));
 
     // DONT'T discard xx / (for union) ix / ii / (for intersection) ux / uu here
     // It would give way to "lonely" ui turn points, traveling all


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