|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72027 - trunk/boost/geometry/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-05-18 04:02:12
Author: barendgehrels
Date: 2011-05-18 04:02:10 EDT (Wed, 18 May 2011)
New Revision: 72027
URL: http://svn.boost.org/trac/boost/changeset/72027
Log:
Fixed (embarrassing but non-harmful) bug for performance shortcut
Text files modified:
trunk/boost/geometry/algorithms/equals.hpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Modified: trunk/boost/geometry/algorithms/equals.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/equals.hpp (original)
+++ trunk/boost/geometry/algorithms/equals.hpp 2011-05-18 04:02:10 EDT (Wed, 18 May 2011)
@@ -88,7 +88,7 @@
{
return geometry::math::equals(
geometry::area(geometry1),
- geometry::area(geometry1));
+ geometry::area(geometry2));
}
};
@@ -100,7 +100,7 @@
{
return geometry::math::equals(
geometry::length(geometry1),
- geometry::length(geometry1));
+ geometry::length(geometry2));
}
};
@@ -135,15 +135,12 @@
return false;
}
- // Check where direction is NOT changing
-
std::sort(c1.begin(), c1.end());
std::sort(c2.begin(), c2.end());
// Just check if these vectors are equal.
return c1.size() == c2.size()
&& std::equal(c1.begin(), c1.end(), c2.begin());
-
}
};
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