Provide virtual destructors as gcc-4 barks heavily otherwise
This commit is contained in:
parent
54a3b8d10e
commit
88a3a641c6
2 changed files with 14 additions and 5 deletions
|
|
@ -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*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Reference in a new issue