Take FT by reference in for(:) loop

This commit is contained in:
Mael Rouxel-Labbé 2020-11-07 18:50:40 +01:00
parent 36cccb0d5c
commit 770b7f7a28
1 changed files with 1 additions and 1 deletions

View File

@ -899,7 +899,7 @@ void test_offset(const char* filename)
// Offset construction // Offset construction
int i = 0; int i = 0;
for(const FT ot : offset_times) for(const FT& ot : offset_times)
{ {
std::cout << "Offset #" << i++ << " = " << ot << std::endl; std::cout << "Offset #" << i++ << " = " << ot << std::endl;
Polygon_with_holes_2_ptr_container offset_poly_with_holes = Polygon_with_holes_2_ptr_container offset_poly_with_holes =