Skip to content

Commit

Permalink
gtfsrt_resolve_run: prevent temporary allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 14, 2024
1 parent 8a14783 commit 542e959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rt/gtfsrt_resolve_run.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void resolve_static(date::sys_days const today,
[&](pair<trip_id_idx_t, trip_idx_t> const& a, auto&& b) {
return std::tuple(tt.trip_id_src_[a.first],
tt.trip_id_strings_[a.first].view()) <
std::tuple(src, b);
std::tuple(src, static_cast<std::string_view>(b));
});

auto const start_date = td.has_start_date()
Expand Down

0 comments on commit 542e959

Please sign in to comment.