|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61099 - sandbox/geometry/boost/geometry/multi/algorithms
From: barend.gehrels_at_[hidden]
Date: 2010-04-06 08:18:03
Author: barendgehrels
Date: 2010-04-06 08:18:02 EDT (Tue, 06 Apr 2010)
New Revision: 61099
URL: http://svn.boost.org/trac/boost/changeset/61099
Log:
Replaced BOOST_FOREACH by normal loop
Text files modified:
sandbox/geometry/boost/geometry/multi/algorithms/dissolve.hpp | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
Modified: sandbox/geometry/boost/geometry/multi/algorithms/dissolve.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/multi/algorithms/dissolve.hpp (original)
+++ sandbox/geometry/boost/geometry/multi/algorithms/dissolve.hpp 2010-04-06 08:18:02 EDT (Tue, 06 Apr 2010)
@@ -49,12 +49,16 @@
}
// Step 2: remove mutual overlap
- std::vector<GeometryOut> step2; // TODO avoid this, output to "out", if possible
- detail::dissolver::dissolver_generic<detail::dissolver::plusmin_policy>::apply(step1, step2);
- BOOST_FOREACH(GeometryOut const& g, step2)
{
- *out++ = g;
+ std::vector<GeometryOut> step2; // TODO avoid this, output to "out", if possible
+ detail::dissolver::dissolver_generic<detail::dissolver::plusmin_policy>::apply(step1, step2);
+ for (std::vector<GeometryOut>::const_iterator it = step2.begin();
+ it != step2.end(); ++it)
+ {
+ *out++ = *it;
+ }
}
+
return out;
}
};
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