Skip to content
Snippets Groups Projects
Commit 7c42cd93 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

class ForwardDecl to change forward references to unique_ptr

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.
parent 7e69b7a3
No related branches found
No related tags found
Loading
Showing
with 215 additions and 54 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment