Skip to content

Commit

Permalink
fix forward
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Apr 15, 2024
1 parent 47ef1a2 commit 92ccdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Polygon/include/CGAL/Multipolygon_with_holes_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Multipolygon_with_holes_2 {

void add_polygon(const Polygon_2& pgn) { m_polygons.push_back(Polygon_with_holes_2(pgn)); }

void add_polygon(const Polygon_2&& pgn) { m_polygons.push_back(Polygon_with_holes_2(std::forward(pgn))); }
void add_polygon(Polygon_2&& pgn) { m_polygons.push_back(Polygon_with_holes_2(std::forward<Polygon_with_holes_2>(pgn))); }

void add_polygon_with_holes(const Polygon_with_holes_2& pgn) { m_polygons.push_back(pgn); }

Expand Down

0 comments on commit 92ccdbc

Please sign in to comment.