use eoExceptions everywhere
This commit is contained in:
parent
75ac37b02a
commit
eba2e14950
127 changed files with 524 additions and 418 deletions
|
|
@ -64,7 +64,7 @@ class eoReduceMerge : public eoReplacement<EOT>
|
|||
void operator()(eoPop<EOT>& _parents, eoPop<EOT>& _offspring)
|
||||
{
|
||||
if (_parents.size() < _offspring.size())
|
||||
throw std::logic_error("eoReduceMerge: More offspring than parents!\n");
|
||||
throw eoPopSizeChangeException(_parents.size(), _offspring.size(),"more offspring than parents!");
|
||||
reduce(_parents, _parents.size() - _offspring.size());
|
||||
merge(_offspring, _parents);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue