Skip to content

Can FairRootManager::RegisterAny consume T* instead of T*& as second argument? #790

@dennisklein

Description

@dennisklein

Followup on one aspect identified in #789.

Disadvantages of T*&:

  • If people want to register object that are referenced by a smart pointer, they are currently told to extract the raw pointer and extend its lifetime with a local static variable.
  • The calling method will effectively only work once.
  • You cannot pass rvalues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions