mirror of https://github.com/CGAL/cgal
add missing traits to avoid using the default constructed one
This commit is contained in:
parent
72f5ba72b9
commit
c9e1f30df1
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue