Provide virtual destructors as gcc-4 barks heavily otherwise

This commit is contained in:
kuepper 2005-09-05 16:47:53 +00:00
commit 88a3a641c6
2 changed files with 14 additions and 5 deletions

View file

@ -46,6 +46,9 @@ public :
current = dest.end(); current = dest.end();
} }
/** @brief Virtual Constructor */
virtual ~eoPopulator() {};
struct OutOfIndividuals {}; struct OutOfIndividuals {};
/** a populator behaves like an iterator. Hence the operator* /** a populator behaves like an iterator. Hence the operator*

View file

@ -36,9 +36,15 @@
class eoUpdatable class eoUpdatable
{ {
public: public:
/** @brief Virtual destructor */
virtual ~eoUpdatable() {};
virtual void update() = 0; virtual void update() = 0;
}; };
/** /**
A base class to actually update an eoUpdatable object A base class to actually update an eoUpdatable object
*/ */