fix using resize in eoPerf2Worth

use copy instead, to avoil empty containered EOTs
This commit is contained in:
Johann Dreo 2020-08-26 12:01:10 +02:00
commit 1d092a5840
2 changed files with 10 additions and 2 deletions

View file

@ -120,7 +120,7 @@ class eoInitFixedLength: public eoInitWithDim<EOT>
virtual void operator()(EOT& chrom)
{
chrom.resize(this->_dimension);
chrom.resize(this->dimension());
std::generate(chrom.begin(), chrom.end(), _generator);
chrom.invalidate();
}