Skip to content

Commit faa8277

Browse files
committed
[hist] Fix code example with RHistConcurrentFiller
CreateContext() returns a smart pointer that has to be dereferenced.
1 parent 2e8c34a commit faa8277

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hist/histv7/inc/ROOT/RHistConcurrentFiller.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ auto hist = std::make_shared<ROOT::Experimental::RHist<int>>(10, std::make_pair(
2525
{
2626
ROOT::Experimental::RHistConcurrentFiller filler(hist);
2727
auto context = filler.CreateFillContext();
28-
context.Fill(8.5);
28+
context->Fill(8.5);
2929
}
3030
// hist->GetBinContent(ROOT::Experimental::RBinIndex(3)) will return 1
3131
\endcode

0 commit comments

Comments
 (0)