Skip to content

Commit

Permalink
Avoid variable shadowing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Jul 15, 2024
1 parent 84db49b commit 5de1727
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/structures/vroom/input/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,7 @@ void Input::set_matrices(unsigned nb_thread, bool sparse_filling) {
std::mutex ep_m;
std::mutex cost_bound_m;

auto run_on_profiles = [&](const std::vector<std::string>& profiles,
bool sparse_filling) {
auto run_on_profiles = [&](const std::vector<std::string>& profiles) {
try {
for (const auto& profile : profiles) {
auto durations_m = _durations_matrices.find(profile);
Expand Down Expand Up @@ -1069,7 +1068,7 @@ void Input::set_matrices(unsigned nb_thread, bool sparse_filling) {
matrix_threads.reserve(thread_profiles.size());

for (const auto& profiles : thread_profiles) {
matrix_threads.emplace_back(run_on_profiles, profiles, sparse_filling);
matrix_threads.emplace_back(run_on_profiles, profiles);
}

for (auto& t : matrix_threads) {
Expand Down

0 comments on commit 5de1727

Please sign in to comment.