Skip to content

Commit

Permalink
fix copy const std::pair<int, int> in for loop
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <[email protected]>
  • Loading branch information
fgaray committed Dec 21, 2023
1 parent 8eaedb9 commit 4102632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpl/src/mbff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ void MBFF::RunSilh(std::vector<std::vector<Tray>>& trays,
}

// run multistart_ in parallel
for (const auto [bit_idx, tray_idx] : ind) {
for (const auto& [bit_idx, tray_idx] : ind) {
const int rows = GetRows(GetBitCnt(bit_idx), bitmask);
const int cols = GetBitCnt(bit_idx) / rows;

Expand Down

0 comments on commit 4102632

Please sign in to comment.