using eo::log instead of std::cout

This commit is contained in:
Johann Dreo 2010-09-29 22:52:30 +02:00
commit ac0a909d1d
12 changed files with 27 additions and 24 deletions

View file

@ -33,6 +33,7 @@
#include <eoFunctor.h>
#include <eoPop.h>
#include <utils/eoLogger.h>
#include <utils/selectors.h>
//-----------------------------------------------------------------------------
@ -50,7 +51,7 @@ template <class EOT> class eoDetTournamentSelect: public eoSelectOne<EOT>
eoDetTournamentSelect(unsigned _tSize = 2 ):eoSelectOne<EOT>(), tSize(_tSize) {
// consistency check
if (tSize < 2) {
std::cout << "Warning, Tournament size should be >= 2\nAdjusted to 2\n";
eo::log << eo::warnings << "Tournament size should be >= 2, adjusted to 2" << std::endl;
tSize = 2;
}
}