Skip to content

Commit 3fcc61a

Browse files
committed
[skip-ci][ntuple] Clarify that the file passed to Append() must stay valid
1 parent 6859d10 commit 3fcc61a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tree/ntuple/inc/ROOT/RNTupleWriter.hxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public:
146146
std::string_view storage, const ROOT::RNTupleWriteOptions &options = ROOT::RNTupleWriteOptions());
147147

148148
/// Creates an RNTupleWriter that writes into an existing TFile or TDirectory, without overwriting its content.
149-
/// `fileOrDirectory` may be an empty TFile.
149+
/// `fileOrDirectory` may be an empty TFile and its reference **must remain valid** for the lifetime of the
150+
/// RNTupleWriter (which means the TDirectory object must not be moved, destroyed or replaced during that time).
150151
/// \see Recreate()
151152
static std::unique_ptr<RNTupleWriter> Append(std::unique_ptr<ROOT::RNTupleModel> model, std::string_view ntupleName,
152153
TDirectory &fileOrDirectory,

0 commit comments

Comments
 (0)