From 542e9598870b299b1e5b293f1df025c0be016ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Thu, 14 Nov 2024 17:39:34 +0100 Subject: [PATCH] gtfsrt_resolve_run: prevent temporary allocation --- src/rt/gtfsrt_resolve_run.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/gtfsrt_resolve_run.cc b/src/rt/gtfsrt_resolve_run.cc index fed4ae69..c785d374 100644 --- a/src/rt/gtfsrt_resolve_run.cc +++ b/src/rt/gtfsrt_resolve_run.cc @@ -40,7 +40,7 @@ void resolve_static(date::sys_days const today, [&](pair 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(b)); }); auto const start_date = td.has_start_date()