可視性グラフの CGAL ライブラリVertex_visibility_graph_2.hに問題があります。私が試しているコードは次のようなものです:
typedef CGAL::Cartesian<CGAL::Gmpq> Kernel;
typedef CGAL::Arr_segment_traits_2<Kernel> Traits_2;
typedef CGAL::Vertex_visibility_graph_2<Traits_2> Vis_graph;
typedef CGAL::Polygon_2<Kernel> Polygon_2;
Vis_graph graph(polygon.vertices_begin(), polygon.vertices_end());
しかし、コンパイルしようとすると、次のエラーが発生します。
/opt/local/include/CGAL/Partition_2/Vertex_visibility_graph_2_impl.h:528:30: error:
no matching function for call to object of type 'Intersect_2' (aka
'CGAL::Arr_segment_traits_2<CGAL::Cartesian<CGAL::Gmpq>>::Intersect_2')
以前にそのライブラリを使用したことがある人はいますか?