diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/honk/sumcheck/sumcheck_round.hpp b/circuits/cpp/barretenberg/cpp/src/barretenberg/honk/sumcheck/sumcheck_round.hpp index 0793507dc9dd..73dbaa565108 100644 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/honk/sumcheck/sumcheck_round.hpp +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/honk/sumcheck/sumcheck_round.hpp @@ -340,7 +340,9 @@ template class SumcheckProverRound { template static constexpr void add_tuples(std::tuple& tuple_1, const std::tuple& tuple_2) { - ((std::get(tuple_1) += std::get(tuple_2)), ...); + auto add_tuples_helper = [&](std::index_sequence) { ((std::get(tuple_1) += std::get(tuple_2)), ...); }; + + add_tuples_helper(std::make_index_sequence{}); } /**