diff --git a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_inplace.cpp b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_inplace.cpp index 22ebb983305..6d761cac759 100644 --- a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_inplace.cpp +++ b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_inplace.cpp @@ -9,8 +9,6 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; typedef Kernel::Point_3 Point_3; -typedef std::size_t Point; - //definition of a non-mutable lvalue property map, //with the get function as a friend function to give it //access to the private member @@ -19,7 +17,7 @@ class My_point_property_map{ public: typedef Point_3 value_type; typedef const value_type& reference; - typedef Point key_type; + typedef std::size_t key_type; typedef boost::lvalue_property_map_tag category; My_point_property_map(const std::vector& pts):points(pts){} @@ -33,7 +31,7 @@ public: 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; typedef CGAL::Orthogonal_k_neighbor_search K_neighbor_search; diff --git a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_pmap.cpp b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_pmap.cpp index 32a9654f91c..8b51fd19b8e 100644 --- a/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_pmap.cpp +++ b/Spatial_searching/examples/Spatial_searching/searching_with_point_with_info_pmap.cpp @@ -9,13 +9,11 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; typedef Kernel::Point_3 Point_3; -typedef std::size_t Point; - -typedef boost::const_associative_property_map > My_point_property_map; +typedef boost::const_associative_property_map > My_point_property_map; 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; typedef CGAL::Orthogonal_k_neighbor_search K_neighbor_search; @@ -27,7 +25,7 @@ int main() { const unsigned int K = 5; // generator for random data points in the cube ( (-1,-1,-1), (1,1,1) ) Random_points_iterator rpit( 1.0); - std::map points; + std::map points; points[0]=Point_3(*rpit++); points[1]=Point_3(*rpit++);