Skip to content
Snippets Groups Projects
  • Giovanni Bussi's avatar
    7c42cd93
    class ForwardDecl to change forward references to unique_ptr · 7c42cd93
    Giovanni Bussi authored
    I changed all the forward references to unique_ptr
    using an auxiliary class (ForwardDecl).
    
    Notice that in this manner the order of destructors
    is exactly the reverse of the order of constructors.
    This forces me to move a variable up in the layout
    of PlumedMain to avoid a segfault.
    
    This change is necessary to make plumed exception-safe.
    7c42cd93
    History
    class ForwardDecl to change forward references to unique_ptr
    Giovanni Bussi authored
    I changed all the forward references to unique_ptr
    using an auxiliary class (ForwardDecl).
    
    Notice that in this manner the order of destructors
    is exactly the reverse of the order of constructors.
    This forces me to move a variable up in the layout
    of PlumedMain to avoid a segfault.
    
    This change is necessary to make plumed exception-safe.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.