<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66967415">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>> + return;
> +
> + aBestFitness = aGenomes[0].Fitness();
> + for (size_t i=0; i<aGenomes.size(); ++i) {
> + if (aGenomes[i].Fitness() < aBestFitness) {
> + aBestFitness = aGenomes[i].Fitness();
> + }
> + }
> + }
> +
> + // Sort genomes by fitness. First is best.
> + static bool CompareGenome(Genome lg, Genome rg) {
> + return (lg.Fitness() < rg.Fitness());
> + }
> + bool SortPopulation() {
> + std::sort(aGenomes.begin(), aGenomes.end(), CompareGenome);
</pre>
<p>Probably that cases the travis <code>unknown location(0): fatal error in "NECneXorTest": memory access violation at address: 0x00000101: no mapping at fault address</code> error.</p>
<p>Not sure, do we need to return a bool here, or can we just use void?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686/files/ee548b6e8b43ae5ef30eda8d5ed8b85d5908d0a0#r66967415">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFK9NVqchlGk3FTreVehmtOGaNKapks5qLqp1gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGkjwbxsAz-WYLWqbniU-YfHWPj0ks5qLqp1gaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686/files/ee548b6e8b43ae5ef30eda8d5ed8b85d5908d0a0#r66967415"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>