You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation error during make. (with root 6.24.06)
It seems to be due to TDirectory::operator= which is deleted.
QnAnalysis/src/QnAnalysisObservablesEK/na61/na61.cpp:352:31: error: use of deleted function ‘ROOT::Internal::TDirectoryAtomicAdapter& ROOT::Internal::TDirectoryAtomicAdapter::operator=(const ROOT::Internal::TDirectoryAtomicAdapter&)’
352 | gDirectory = cwd;
Solution:
Use TDirectory* cwd = gDirectory; everywhere in the file.
Compilation error during make. (with root 6.24.06)
It seems to be due to TDirectory::operator= which is deleted.
Solution:
Use TDirectory* cwd = gDirectory; everywhere in the file.
edit:
Suggestion of ROOT team to use TContext
https://root-forum.cern.ch/t/tdirectory-operator-is-deleted/48064
The text was updated successfully, but these errors were encountered: