1
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

View File

@ -53,6 +53,10 @@ template <int SizeX, int SizeZ = SizeX>
class cIntGen class cIntGen
{ {
public: 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). */ /** Holds the array of values generated by this class (descendant). */
typedef int Values[SizeX * SizeZ]; typedef int Values[SizeX * SizeZ];