Skip to content
Snippets Groups Projects
Commit bc5115b7 authored by Guilherme Amadio's avatar Guilherme Amadio Committed by Danilo Piparo
Browse files

[RDF] Fix compilation of dataframe_nodes test on Windows

dataframe_nodes.cxx(97): error C3493: 'nBinsExpected' cannot be
implicitly captured because no default capture mode has been specified
parent f3b04269
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@ TEST(RDataFrameNodes, InheritanceOfCustomColumns)
ROOT::RDataFrame df(1);
const auto nBinsExpected = 42;
// Read the TH1F as a TH1
df.Define("b", []() { return TH1F("b", "b", nBinsExpected, 0, 1); })
.Foreach([&nBinsExpected](TH1 &h) { EXPECT_EQ(h.GetNbinsX(), nBinsExpected);}, {"b"});
df.Define("b", [&]() { return TH1F("b", "b", nBinsExpected, 0, 1); })
.Foreach([&](TH1 &h) { EXPECT_EQ(h.GetNbinsX(), nBinsExpected);}, {"b"});
const auto ofileName = "InheritanceOfCustomColumns.root";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment