fix using resize in eoPerf2Worth
use copy instead, to avoil empty containered EOTs
This commit is contained in:
parent
fca55505d8
commit
1d092a5840
2 changed files with 10 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue