1
0
Fork 0

cIntGen: Added a virtual destructor.

This commit is contained in:
Mattes D 2014-10-27 09:48:57 +01:00
parent 7d08d34693
commit a068ebf3e0
1 changed files with 4 additions and 0 deletions

View File

@ -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];