be compatible with non c++17 compilers

This commit is contained in:
Sébastien Loriot 2024-02-27 11:53:30 +01:00
parent 074a05811a
commit 27cb1144d6
1 changed files with 7 additions and 9 deletions

View File

@ -7,15 +7,13 @@ typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef CGAL::Segment_Delaunay_graph_traits_2<K> Gt;
typedef CGAL::Segment_Delaunay_graph_2<Gt> SDG2;
int main() {
auto segments = std::vector({
CGAL::Segment_2<K>(
CGAL::Point_2<K>(0.0, 0.0),
CGAL::Point_2<K>(1.0, 0.0))
});
int main()
{
std::vector<CGAL::Segment_2<K>> segments;
segments.emplace_back(CGAL::Point_2<K>(0.0, 0.0),CGAL::Point_2<K>(1.0, 0.0));
SDG2 delaunay;
delaunay.insert_segments(segments.begin(), segments.end());
SDG2 delaunay;
delaunay.insert_segments(segments.begin(), segments.end());
return 0;
return 0;
}