From e2ddd7eaf56dbb38cd7b937f8c45be3ec8d45547 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Tue, 2 Apr 2013 00:47:13 +0000 Subject: [PATCH] rtree test: some types changed to avoid problems with conversion [SVN r83705] --- test/index/rtree/test_rtree.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index/rtree/test_rtree.hpp b/test/index/rtree/test_rtree.hpp index 6d773b227..4dcf8fe31 100644 --- a/test/index/rtree/test_rtree.hpp +++ b/test/index/rtree/test_rtree.hpp @@ -808,7 +808,7 @@ struct TestNearestKTransform }; template -void test_nearest_query_k(Rtree const& rtree, std::vector const& input, Point const& pt, size_t k) +void test_nearest_query_k(Rtree const& rtree, std::vector 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 @@ void test_nearest_query_k(Rtree const& rtree, std::vector const& input, P test_exactly_the_same_outputs(rtree, output, rtree | bgi::adaptors::queried(bgi::nearest(pt, k))); std::vector output2(k, generate_value_default::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::apply()); test_exactly_the_same_outputs(rtree, output, output2);