Skip to content

Commit 85d0d0a

Browse files
committed
accomodate API change in 6.1
1 parent 529f9fe commit 85d0d0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SWIG_CGAL/Triangulation_2/Constrained_triangulation_plus_2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ struct Iterator_helper<std::pair<SWIG_Triangulation_2::CGAL_Vertex_handle<Triang
2121

2222
template <class T1, class T2>
2323
static std::pair<Vertex_handle,Vertex_handle> convert(const std::pair<T1,T2>& i){
24+
#if CGAL_VERSION_NR >= 1060100910
25+
return std::pair<Vertex_handle,Vertex_handle>(Vertex_handle(i.first),Vertex_handle(i.second));
26+
#else
2427
return std::pair<Vertex_handle,Vertex_handle>(Vertex_handle(i.first.first),Vertex_handle(i.first.second));
28+
#endif
2529
}
2630

2731
static std::pair<Vertex_handle,Vertex_handle> convert(const typename Triangulation::Constraint_id& i){

0 commit comments

Comments
 (0)