Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83705 - trunk/libs/geometry/test/index/rtree
From: adam.wulkiewicz_at_[hidden]
Date: 2013-04-01 20:47:14


Author: awulkiew
Date: 2013-04-01 20:47:13 EDT (Mon, 01 Apr 2013)
New Revision: 83705
URL: http://svn.boost.org/trac/boost/changeset/83705

Log:
rtree test: some types changed to avoid problems with conversion
Text files modified:
   trunk/libs/geometry/test/index/rtree/test_rtree.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/geometry/test/index/rtree/test_rtree.hpp
==============================================================================
--- trunk/libs/geometry/test/index/rtree/test_rtree.hpp (original)
+++ trunk/libs/geometry/test/index/rtree/test_rtree.hpp 2013-04-01 20:47:13 EDT (Mon, 01 Apr 2013)
@@ -808,7 +808,7 @@
 };
 
 template <typename Rtree, typename Value, typename Point>
-void test_nearest_query_k(Rtree const& rtree, std::vector<Value> const& input, Point const& pt, size_t k)
+void test_nearest_query_k(Rtree const& rtree, std::vector<Value> const& input, Point const& pt, unsigned int k)
 {
     // TODO: Nearest object may not be the same as found by the rtree if distances are equal
     // All objects with the same closest distance should be picked
@@ -867,7 +867,7 @@
     test_exactly_the_same_outputs(rtree, output, rtree | bgi::adaptors::queried(bgi::nearest(pt, k)));
 
     std::vector<Value> output2(k, generate_value_default<Value>::apply());
- size_t found_count = rtree.query(bgi::nearest(pt, k), output2.begin());
+ typename Rtree::size_type found_count = rtree.query(bgi::nearest(pt, k), output2.begin());
     output2.resize(found_count, generate_value_default<Value>::apply());
 
     test_exactly_the_same_outputs(rtree, output, output2);


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