Avoid UB with default constructed handle

See also f9c9cfa40b
This commit is contained in:
Mael Rouxel-Labbé 2021-07-19 15:55:47 +02:00
parent 9a5805839e
commit 1fc3050e0b
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ Triangulation_ds_face_base_2<TDS> ::
set_neighbor(int i, Face_handle n)
{
CGAL_triangulation_precondition( i == 0 || i == 1 || i == 2);
CGAL_triangulation_precondition( this != &*n );
CGAL_triangulation_precondition( this != n.operator->() );
N[i] = n;
}