include/Spectre/Core/NonCopyable.h: Destructor needs to be virtual. Otherwise deleting a NonCopyable pointer wont call the child class destructor
This commit is contained in:
parent
9621ea19bb
commit
03cbba9a6c
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class NonCopyable
|
|||
protected :
|
||||
|
||||
NonCopyable() = default;
|
||||
~NonCopyable() = default;
|
||||
virtual ~NonCopyable() = default;
|
||||
|
||||
// Delete Copy constructor and assignment.
|
||||
NonCopyable(const NonCopyable&) = delete;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue