diff --git a/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/issue7972.cpp b/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/issue7972.cpp index 6dd4a4e5e2b4..dc320717cf9e 100644 --- a/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/issue7972.cpp +++ b/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/issue7972.cpp @@ -7,15 +7,13 @@ typedef CGAL::Exact_predicates_exact_constructions_kernel K; typedef CGAL::Segment_Delaunay_graph_traits_2 Gt; typedef CGAL::Segment_Delaunay_graph_2 SDG2; -int main() { - auto segments = std::vector({ - CGAL::Segment_2( - CGAL::Point_2(0.0, 0.0), - CGAL::Point_2(1.0, 0.0)) - }); +int main() +{ + std::vector> segments; + segments.emplace_back(CGAL::Point_2(0.0, 0.0),CGAL::Point_2(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; }