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 4686575 commit 8a14783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rt/gtfsrt_resolve_run.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ void resolve_static(date::sys_days const today,
auto const& trip_id = td.trip_id();
auto const lb = std::lower_bound(
begin(tt.trip_id_to_idx_), end(tt.trip_id_to_idx_), trip_id,
[&](pair<trip_id_idx_t, trip_idx_t> const& a, string const& b) {
[&](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.view());
std::tuple(src, b);
});

auto const start_date = td.has_start_date()
Expand Down

0 comments on commit 8a14783

Please sign in to comment.