repared some compile warning messages

This commit is contained in:
Caner Candan 2010-08-31 14:52:08 +02:00
commit 2b3db39aff
2 changed files with 6 additions and 2 deletions

View file

@ -65,8 +65,9 @@ public:
/** Returns false when Ctrl C has been typed in
* reached */
virtual bool operator() ( const eoPop<EOT>& _vEO )
virtual bool operator() ( const eoPop<EOT>& _vEO )
{
(void)_vEO;
if (arret_demande)
return false;
return true;

View file

@ -27,6 +27,8 @@
#include <eoContinue.h>
#include <utils/eoParam.h>
#include <utils/eoLogger.h>
/**
Generational continuator: continues until a number of generations is reached
*/
@ -52,13 +54,14 @@ public:
/** Returns false when a certain number of generations is
* reached */
virtual bool operator() ( const eoPop<EOT>& _vEO ) {
(void)_vEO;
thisGeneration++;
value() = thisGeneration;
// std::cout << " [" << thisGeneration << "] ";
if (thisGeneration >= repTotalGenerations)
{
if (verbose)
std::cout << "STOP in eoGenContinue: Reached maximum number of generations [" << thisGeneration << "/" << repTotalGenerations << "]\n";
eo::log << eo::logging << "STOP in eoGenContinue: Reached maximum number of generations [" << thisGeneration << "/" << repTotalGenerations << "]\n";
return false;
}
return true;