• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Boost.Geometry Index
2 // Unit Test
3 
4 // Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland.
5 
6 // Use, modification and distribution is subject to the Boost Software License,
7 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 
10 #include <rtree/test_rtree.hpp>
11 
12 
13 template <typename Point, typename Params>
test_rtree()14 void test_rtree()
15 {
16     bgi::rtree<Point, Params> rt;
17     // coordinates aren't implicitly convertible to Point
18     rt.insert(1.0);
19     rt.remove(1.0);
20 }
21 
test_main(int,char * [])22 int test_main(int, char* [])
23 {
24     typedef bg::model::point<double, 1, bg::cs::cartesian> Pt;
25 
26     test_rtree<Pt, bgi::linear<16> >();
27     test_rtree<Pt, bgi::quadratic<4> >();
28     test_rtree<Pt, bgi::rstar<4> >();
29 
30     return 0;
31 }
32