diff --git a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h index 50c2d76c452..fde9ea2365a 100644 --- a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h @@ -665,8 +665,8 @@ insert(const Point& a, Locate_type lt, Face_handle loc, int li) it != finite_edges_end(); ++it){ if(is_constrained(*it)){ - constrained_edges.push_back(std::make_pair(it->first->vertex(cw(it->second)), - it->first->vertex(ccw(it->second)))); + constrained_edges.emplace_back(it->first->vertex(cw(it->second)), + it->first->vertex(ccw(it->second))); } } } @@ -683,7 +683,7 @@ insert(const Point& a, Locate_type lt, Face_handle loc, int li) va = Triangulation::insert(a,lt,loc,li); if(one_dimensional && (dimension() == 2)){ - for(const std::pair vp : constrained_edges){ + for(const std::pair& vp : constrained_edges){ Face_handle fh; int i; if(this->is_edge(vp.first, vp.second, fh,i)){