From d480e2544e60b4705378a4e876199fc716dafa3a Mon Sep 17 00:00:00 2001 From: iyaz Date: Thu, 2 May 2013 15:59:36 +0300 Subject: [PATCH] change in example, use Nth_of_tuple_property_map --- .../searching_with_point_with_info.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info.cpp b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info.cpp index 0438c70c459..40925cd6beb 100644 --- a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info.cpp +++ b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -11,23 +12,11 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; typedef Kernel::Point_3 Point_3; typedef boost::tuple Point_and_int; -//definition of the property map -struct My_point_property_map{ - typedef Point_3 value_type; - typedef const value_type& reference; - typedef const Point_and_int& key_type; - typedef boost::readable_property_map_tag category; -}; - -//get function for the property map -My_point_property_map::reference -get(My_point_property_map,My_point_property_map::key_type p) -{return boost::get<0>(p);} - - typedef CGAL::Random_points_in_cube_3 Random_points_iterator; typedef CGAL::Search_traits_3 Traits_base; -typedef CGAL::Search_traits_adapter Traits; +typedef CGAL::Search_traits_adapter, + Traits_base> Traits; typedef CGAL::Orthogonal_k_neighbor_search K_neighbor_search;