Do not force the user of such utilities/wrappers to shared ownership, but provide only unique_ptr. Can still be converted to shared_ptr if required by the user. But since ROOT with its own idea about object ownership is involved, it's hard to tell if such an interface change has no side effects.
Do not force the user of such utilities/wrappers to shared ownership, but provide only
unique_ptr
. Can still be converted toshared_ptr
if required by the user. But since ROOT with its own idea about object ownership is involved, it's hard to tell if such an interface change has no side effects.