|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73316 - in trunk/boost/geometry/algorithms/detail: . sections
From: barend.gehrels_at_[hidden]
Date: 2011-07-24 04:14:00
Author: barendgehrels
Date: 2011-07-24 04:13:59 EDT (Sun, 24 Jul 2011)
New Revision: 73316
URL: http://svn.boost.org/trac/boost/changeset/73316
Log:
Fixed type (for conversion/warning), minor change in sectionalize (equals instead of diff/0)
Text files modified:
trunk/boost/geometry/algorithms/detail/assign_values.hpp | 2 +-
trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
Modified: trunk/boost/geometry/algorithms/detail/assign_values.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/assign_values.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/assign_values.hpp 2011-07-24 04:13:59 EDT (Sun, 24 Jul 2011)
@@ -207,7 +207,7 @@
{
geometry::set<Dimension>( point, boost::numeric_cast
<
- typename coordinate_type<Geometry>::type
+ typename coordinate_type<Point>::type
>(geometry::get<Index, Dimension>(geometry)));
assign_point_from_index
Modified: trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/sections/sectionalize.hpp 2011-07-24 04:13:59 EDT (Sun, 24 Jul 2011)
@@ -189,11 +189,12 @@
static inline bool apply(Segment const& seg)
{
- coordinate_type const diff =
- geometry::get<1, Dimension>(seg) - geometry::get<0, Dimension>(seg);
-
- coordinate_type const zero = 0;
- if (! geometry::math::equals(diff, zero))
+ if (! geometry::math::equals
+ (
+ geometry::get<0, Dimension>(seg),
+ geometry::get<1, Dimension>(seg)
+ )
+ )
{
return false;
}
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