diff --git a/Spatial_sorting/examples/Spatial_sorting/sp_sort_using_property_map_2.cpp b/Spatial_sorting/examples/Spatial_sorting/sp_sort_using_property_map_2.cpp index cffcfd2f980..ebc176f3df5 100644 --- a/Spatial_sorting/examples/Spatial_sorting/sp_sort_using_property_map_2.cpp +++ b/Spatial_sorting/examples/Spatial_sorting/sp_sort_using_property_map_2.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include typedef CGAL::Simple_cartesian Kernel; @@ -8,21 +9,9 @@ typedef Kernel::Point_2 Point_2; typedef std::pair Point_with_info; typedef std::vector< Point_with_info > Data_vector; -//property map -struct First_of_pair{ - //classical typedefs - typedef Point_with_info key_type; - typedef Point_2 value_type; - typedef const Point_2& reference; - typedef boost::readable_property_map_tag category; -}; -//get function for property map -First_of_pair::reference -get(const First_of_pair&, const First_of_pair::key_type& k) { - return k.first; -} - -typedef CGAL::Spatial_sort_traits_adapter_2 Search_traits_2; +typedef CGAL::Spatial_sort_traits_adapter_2 +> Search_traits_2; int main() {