<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66364590">src/mlpack/methods/ne/genome.hpp</a>:</p>
<pre style='color:#555'>> + void Depth(unsigned int depth) { aDepth = depth; }
> +
> + // Get fitness.
> + double Fitness() const { return aFitness; }
> +
> + // Set fitness.
> + void Fitness(double fitness) { aFitness = fitness; }
> +
> + // Get neuron number.
> + unsigned int NumNeuron() const {
> + return static_cast<unsigned int>(aNeuronGenes.size());
> + }
> +
> + // Get link number.
> + unsigned int NumLink() const {
> + return static_cast<unsigned int>(aLinkGenes.size());
</pre>
<p>No need to cast if we are going to use size_t.</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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66364590">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFMX9aZCCcjOK68F3hmMHjo1XKH39ks5qJ1uTgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLPwmj8yId6BaMnPJOqM4YIQvD6dks5qJ1uTgaJpZM4IwJa6.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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66364590"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>