Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84344 - trunk/boost/geometry/index/detail
From: adam.wulkiewicz_at_[hidden]
Date: 2013-05-18 06:59:22


Author: awulkiew
Date: 2013-05-18 06:59:21 EDT (Sat, 18 May 2013)
New Revision: 84344
URL: http://svn.boost.org/trac/boost/changeset/84344

Log:
geometry::index: wrong result_type in calculate_distance for path predicate fixed
Text files modified:
   trunk/boost/geometry/index/detail/distance_predicates.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/geometry/index/detail/distance_predicates.hpp
==============================================================================
--- trunk/boost/geometry/index/detail/distance_predicates.hpp (original)
+++ trunk/boost/geometry/index/detail/distance_predicates.hpp 2013-05-18 06:59:21 EDT (Sat, 18 May 2013)
@@ -146,7 +146,9 @@
 template <typename SegmentOrLinestring, typename Indexable, typename Tag>
 struct calculate_distance< path<SegmentOrLinestring>, Indexable, Tag>
 {
- typedef typename geometry::default_length_result<SegmentOrLinestring>::type result_type;
+ typedef typename index::detail::default_path_intersection_distance_type<
+ Indexable, SegmentOrLinestring
+ >::type result_type;
 
     static inline bool apply(path<SegmentOrLinestring> const& p, Indexable const& i, result_type & result)
     {


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