Skip to content

Commit 6dc155e

Browse files
committed
Remove use of ranges
1 parent d232bdb commit 6dc155e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/gerber/src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace gerber {
2828

2929
// In gerber usually each command is in a new line, so this can be
3030
// a good guess for our initial size of a vector.
31-
auto line_count = std::ranges::count(full_source, '\n');
31+
auto line_count = std::count(full_source.begin(), full_source.end(), '\n');
3232
commands.clear();
3333
commands.reserve(line_count);
3434

0 commit comments

Comments
 (0)