From fc9c211b6ad553a2f7d77e229a4b95ccbd7c37e5 Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Wed, 8 Jun 2022 15:08:09 -0400 Subject: [PATCH] Fix destructor --- include/Nucleus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Nucleus.h b/include/Nucleus.h index 9fb1493..e1dfc92 100644 --- a/include/Nucleus.h +++ b/include/Nucleus.h @@ -19,7 +19,7 @@ public: Nucleus(); Nucleus(int Z, int A); Nucleus(int Z, int A, double px, double py, double pz, double E); - ~Nucleus(); + virtual ~Nucleus() override; bool SetIsotope(int Z, int A); inline void SetThetaCM(double tcm) { m_theta_cm = tcm; }; //save theta in rxn CM frame inline int GetZ() const { return m_z; }; @@ -61,4 +61,4 @@ private: }; -#endif \ No newline at end of file +#endif