rtree_values_invalid.cpp 752 B

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