diff --git a/tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx b/tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx index 5e2314fa6469a..bff3f8d9d5501 100644 --- a/tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx +++ b/tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx @@ -265,14 +265,10 @@ BuildAction(const ColumnNames_t &colNames, const std::shared_ptrfOutputColNames; const auto &options = snapHelperArgs->fOptions; - auto makeIsDefine = [&] { - auto sz = sizeof...(ColTypes); - std::vector isDef(sz); - for (auto i = 0u; i < sz; ++i) - isDef[i] = colRegister.IsDefineOrAlias(colNames[i]); - return isDef; - }; - std::vector isDefine = makeIsDefine(); + auto sz = sizeof...(ColTypes); + std::vector isDefine(sz); + for (auto i = 0u; i < sz; ++i) + isDefine[i] = colRegister.IsDefineOrAlias(colNames[i]); std::unique_ptr actionPtr; if (!ROOT::IsImplicitMTEnabled()) {