cIntGen: Added a virtual destructor.
This commit is contained in:
parent
7d08d34693
commit
a068ebf3e0
@ -53,6 +53,10 @@ template <int SizeX, int SizeZ = SizeX>
|
||||
class cIntGen
|
||||
{
|
||||
public:
|
||||
/** Force a virtual destructor in all descendants.
|
||||
Descendants contain virtual functions and are referred to via pointer-to-base, so they need a virtual destructor. */
|
||||
virtual ~cIntGen() {}
|
||||
|
||||
/** Holds the array of values generated by this class (descendant). */
|
||||
typedef int Values[SizeX * SizeZ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user