add missing traits to avoid using the default constructed one

This commit is contained in:
Sébastien Loriot 2016-06-29 09:41:22 +02:00
parent 72f5ba72b9
commit c9e1f30df1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace CGAL {
std::back_inserter(vertex_indices)); std::back_inserter(vertex_indices));
typename T::size_type n = t.number_of_vertices(); typename T::size_type n = t.number_of_vertices();
CGAL::Spatial_sort_traits_adapter_2<Geom_traits, const Point*> sort_traits(&(points[0])); CGAL::Spatial_sort_traits_adapter_2<Geom_traits, const Point*> sort_traits(&(points[0]),t.geom_traits());
spatial_sort(vertex_indices.begin(), vertex_indices.end(), sort_traits); spatial_sort(vertex_indices.begin(), vertex_indices.end(), sort_traits);