Skip to content

Commit

Permalink
[DF] Fix compilation of Foreach with mutable lambdas
Browse files Browse the repository at this point in the history
This fixes root-project#8317.
  • Loading branch information
eguiraud committed Jun 4, 2021
1 parent d1c9706 commit 069afcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ struct RMinReturnType<T, true> {
template <typename R, typename F, typename... Args>
std::function<R(unsigned int, Args...)> AddSlotParameter(F &f, TypeList<Args...>)
{
return [f](unsigned int, Args... a) -> R { return f(a...); };
return [f](unsigned int, Args... a) mutable -> R { return f(a...); };
}

template <typename ColType, typename... Rest>
Expand Down

0 comments on commit 069afcc

Please sign in to comment.