|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68935 - trunk/boost/geometry/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-02-15 17:33:19
Author: barendgehrels
Date: 2011-02-15 17:33:18 EST (Tue, 15 Feb 2011)
New Revision: 68935
URL: http://svn.boost.org/trac/boost/changeset/68935
Log:
Use traits::resize now instead of assuming a container resize method
Text files modified:
trunk/boost/geometry/algorithms/correct.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/geometry/algorithms/correct.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/correct.hpp (original)
+++ trunk/boost/geometry/algorithms/correct.hpp 2011-02-15 17:33:18 EST (Tue, 15 Feb 2011)
@@ -135,7 +135,7 @@
if (! disjoint && geometry::closure<Ring>::value != closed)
{
// Open it by removing last point
- r.resize(boost::size(r) - 1);
+ geometry::traits::resize<Ring>::apply(r, boost::size(r) - 1);
}
}
// Check area
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