I noticed TFile
admits a default constructor. This is useful to create classes with a TFile
member, and not have to initialize the file in the constructor.
However, how does one subsequently open a file from a default-constructed TFile
? I could not find a non-static TFile::Open
function.
The alternative, of course, is to use pointers, but that is not RAII.
Version: Head