removed reference to rint() (what does this function do anyway? it is not ANSI and defined nowhere in eo!)
This commit is contained in:
parent
007046c134
commit
230e1a03d1
4 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ template<class Chrom> class eoInclusion: public eoMerge<Chrom>
|
|||
*/
|
||||
void operator()(eoPop<Chrom>& breeders, eoPop<Chrom>& pop)
|
||||
{
|
||||
unsigned target = min(static_cast<unsigned>(rint(pop.size() * rate())),
|
||||
unsigned target = min(static_cast<unsigned>(pop.size() * rate()),
|
||||
pop.size() + breeders.size());
|
||||
|
||||
copy(breeders.begin(), breeders.end(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue