Skip to content

Commit

Permalink
[ntuple] fix RResult class for PyROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Jan 29, 2024
1 parent 5c6ab3a commit 9d3a040
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/foundation/v7/inc/ROOT/RError.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,6 @@ public:
result.fError->AddFrame(std::move(sourceLocation));
return *result.fError;
}

// Help to prevent heap construction of RResult objects. Unchecked RResult objects in failure state should throw
// an exception close to the error location. For stack allocated RResult objects, an exception is thrown
// the latest when leaving the scope. Heap allocated RResult objects in failure state can live much longer making it
// difficult to trace back the original error.
void *operator new(std::size_t size) = delete;
void *operator new(std::size_t, void *) = delete;
void *operator new[](std::size_t) = delete;
void *operator new[](std::size_t, void *) = delete;
}; // class RResultBase

// clang-format off
Expand Down

0 comments on commit 9d3a040

Please sign in to comment.