repared some compile warning messages
This commit is contained in:
parent
1b3172a40c
commit
2b3db39aff
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue