Skip to content

Commit

Permalink
Merge branch 'fix/iterator-category'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Apr 30, 2024
2 parents 2ead5cc + 066e0d0 commit db16411
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

### Fixed

#### Internals

- Iterator type required by `TWRoute::replace` function (#1103)

## [v1.14.0] - 2024-01-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/structures/vroom/tw_route.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ bool TWRoute::is_valid_addition_for_tw(const Input& input,
return current.earliest + next.travel <= next.latest;
}

template <std::forward_iterator Iter>
template <std::random_access_iterator Iter>
void TWRoute::replace(const Input& input,
const Amount& delivery,
const Iter first_job,
Expand Down
2 changes: 1 addition & 1 deletion src/structures/vroom/tw_route.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <std::forward_iterator Iter>
template <std::random_access_iterator Iter>
void replace(const Input& input,
const Amount& delivery,
const Iter first_job,
Expand Down

0 comments on commit db16411

Please sign in to comment.