Skip to content

Commit

Permalink
lets try that again
Browse files Browse the repository at this point in the history
  • Loading branch information
ledwards2225 committed Aug 2, 2023
1 parent 984e6d7 commit e318a42
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ template <typename Flavor> class SumcheckProverRound {
template <typename... T>
static constexpr void add_tuples(std::tuple<T...>& tuple_1, const std::tuple<T...>& tuple_2)
{
((std::get<T>(tuple_1) += std::get<T>(tuple_2)), ...);
auto add_tuples_helper = [&]<std::size_t... I>(std::index_sequence<I...>) { ((std::get<I>(tuple_1) += std::get<I>(tuple_2)), ...); };

add_tuples_helper(std::make_index_sequence<sizeof...(T)>{});
}

/**
Expand Down

0 comments on commit e318a42

Please sign in to comment.