Add a warning when computing stat in empty pop
This commit is contained in:
parent
67e4bb01fd
commit
f4b71dffad
1 changed files with 3 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ Contact: http://eodev.sourceforge.net
|
|||
#include <eoPop.h>
|
||||
#include <utils/eoMonitor.h>
|
||||
//#include <utils/eoCheckPoint.h>
|
||||
#include <utils/eoLogger.h>
|
||||
|
||||
/** @defgroup Stats Statistics computation
|
||||
*
|
||||
|
|
@ -485,7 +486,8 @@ public:
|
|||
virtual void operator()( const eoPop<EOT> & _pop )
|
||||
{
|
||||
if( _pop.size() == 0 ) {
|
||||
// how to implement value() = 0 ?
|
||||
//FIXME how to implement value() = 0 ?
|
||||
eo::log << eo::warnings << "Called " << className() << " on an empty pop, value unchanged" << std::endl;
|
||||
|
||||
} else {
|
||||
eoPop<EOT> pop = _pop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue