changed eoTruncate to use sort. nth_element leads to weird results in moo case
This commit is contained in:
parent
1d4cfb0da8
commit
220c89d1d5
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ template <class EOT> class eoTruncate : public eoReduce<EOT>
|
|||
if (_newgen.size() < _newsize)
|
||||
throw std::logic_error("eoTruncate: Cannot truncate to a larger size!\n");
|
||||
|
||||
_newgen.nth_element(_newsize);
|
||||
sort(_newgen.begin(), _newgen.end());
|
||||
_newgen.resize(_newsize);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue