<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'>&gt; +  void Depth(unsigned int depth) { aDepth = depth; }
&gt; +
&gt; +  // Get fitness.
&gt; +  double Fitness() const { return aFitness; }
&gt; +
&gt; +  // Set fitness.
&gt; +  void Fitness(double fitness) { aFitness = fitness; }
&gt; +
&gt; +  // Get neuron number.
&gt; +  unsigned int NumNeuron() const {
&gt; +    return static_cast&lt;unsigned int&gt;(aNeuronGenes.size());
&gt; +  }
&gt; +  
&gt; +  // Get link number.
&gt; +  unsigned int NumLink() const {
&gt; +    return static_cast&lt;unsigned int&gt;(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;">&mdash;<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>