moRandImprSelect.h minor correction

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@888 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2008-01-16 14:52:39 +00:00
commit b3a9c32658
286 changed files with 1 additions and 27161 deletions

View file

@ -103,7 +103,7 @@ class moRandImprSelect: public moMoveSelect < M >
if( (better_fitnesses.size()==0) || (better_moves.size()==0) )
{
std::cout << "[moRandImprSelect.h]: no move or/and no fitness already saved, update has to be called first." << std::endl;
throw std::runtime_error("[moRandImprSelect.h]: no move or/and no fitness already saved, update has to be called first.");
}
index = rng.random (better_fitnesses.size ());