Skip to content

Commit

Permalink
Do not use std::ranges which is c++26
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jan 9, 2025
1 parent 5720be8 commit 4e0f5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3138,11 +3138,11 @@ bool FffGcodeWriter::processInsets(
});

// If finally necessary, add actual calculated speed regions
if (std::ranges::distance(merged_regions) > 1)
if (ranges::distance(merged_regions) > 1)
{
for (const auto& regions : merged_regions)
{
const SpeedRegion& last_region = *std::ranges::prev(regions.end());
const SpeedRegion& last_region = *ranges::prev(regions.end());
overhang_masks.push_back(LayerPlan::OverhangMask{ get_supported_region(last_region.overhang_angle), last_region.speed_factor });
}
}
Expand Down

0 comments on commit 4e0f5fe

Please sign in to comment.