From 0def889c0ed2c9fc8bac8b86597906326aec7295 Mon Sep 17 00:00:00 2001 From: Krzysiek Karbowiak Date: Mon, 22 Apr 2024 16:09:53 +0200 Subject: [PATCH 1/2] Fix iterator category --- src/structures/vroom/tw_route.cpp | 2 +- src/structures/vroom/tw_route.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/vroom/tw_route.cpp b/src/structures/vroom/tw_route.cpp index 44fe624cc..f5937272a 100644 --- a/src/structures/vroom/tw_route.cpp +++ b/src/structures/vroom/tw_route.cpp @@ -1004,7 +1004,7 @@ bool TWRoute::is_valid_addition_for_tw(const Input& input, return current.earliest + next.travel <= next.latest; } -template +template void TWRoute::replace(const Input& input, const Amount& delivery, const Iter first_job, diff --git a/src/structures/vroom/tw_route.h b/src/structures/vroom/tw_route.h index 2e57571eb..234bc63e2 100644 --- a/src/structures/vroom/tw_route.h +++ b/src/structures/vroom/tw_route.h @@ -217,7 +217,7 @@ class TWRoute : public RawRoute { // first_rank and before last_rank *in place of* the current jobs // that may be there. "delivery" is the amount delivered in single // jobs for inclusion range. - template + template void replace(const Input& input, const Amount& delivery, const Iter first_job, From 066e0d0a4807d59c969066ba73a9b32c20095733 Mon Sep 17 00:00:00 2001 From: Krzysiek Karbowiak Date: Mon, 22 Apr 2024 16:23:07 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceedfb155..ee24d460c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ ### Fixed +#### Internals + +- Iterator type required by `TWRoute::replace` function (#1103) + ## [v1.14.0] - 2024-01-16 ### Added