Skip to content

Commit 4e0f5fe

Browse files
committed
Do not use std::ranges which is c++26
CURA-11966
1 parent 5720be8 commit 4e0f5fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FffGcodeWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,11 +3138,11 @@ bool FffGcodeWriter::processInsets(
31383138
});
31393139

31403140
// If finally necessary, add actual calculated speed regions
3141-
if (std::ranges::distance(merged_regions) > 1)
3141+
if (ranges::distance(merged_regions) > 1)
31423142
{
31433143
for (const auto& regions : merged_regions)
31443144
{
3145-
const SpeedRegion& last_region = *std::ranges::prev(regions.end());
3145+
const SpeedRegion& last_region = *ranges::prev(regions.end());
31463146
overhang_masks.push_back(LayerPlan::OverhangMask{ get_supported_region(last_region.overhang_angle), last_region.speed_factor });
31473147
}
31483148
}

0 commit comments

Comments
 (0)