Skip to content

Commit

Permalink
Use free function for size on template param.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Dec 13, 2024
1 parent e5f2320 commit 924c228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/vroom/solution_indicators.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct SolutionIndicators {
routes_sizes.reserve(sol.size());
std::ranges::transform(sol,
std::back_inserter(routes_sizes),
[](const auto& r) { return r.size(); });
[](const auto& r) { return std::size(r); });
std::ranges::sort(routes_sizes);
routes_hash = get_vector_hash(routes_sizes);
}
Expand Down

0 comments on commit 924c228

Please sign in to comment.