<p>In <a href="https://github.com/mlpack/mlpack/pull/664#discussion_r65641033">src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp</a>:</p>
<pre style='color:#555'>&gt; +   * @param val The Hilbert value to compare with.
&gt; +   */
&gt; +  template&lt;typename TreeType&gt;
&gt; +  int CompareWith(TreeType *tree, DiscreteHilbertValue &amp;val);
&gt; +
&gt; +  /**
&gt; +   * Compare the largest Hilbert value of the node with the Hilbert value
&gt; +   * of the point. It returns 1 if the value of the node is greater than
&gt; +   * the value of the point, -1 if the value of the node is less than
&gt; +   * the value of the point and 0 if the values are equal.
&gt; +   * This method computes the Hilbert value of the point.
&gt; +   * @param tree Not used
&gt; +   * @param val The point to compare with.
&gt; +   */
&gt; +  template&lt;typename TreeType,typename ElemType&gt;
&gt; +  int CompareWith(TreeType *tree, const arma::Col&lt;ElemType&gt; &amp;pt);
</pre>
<p>I think all the overloads of <code>CompareWith()</code> can be marked <code>const</code>.</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/664/files/ab890dff6b4b617b5309af53950c6cac97d994d6#r65641033">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFNqoClqKihd7MXCKHu89Y8qCphQ1ks5qH3O2gaJpZM4IrlzT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNK5sgmyZb2CdCM-a9SQYOHYER2rks5qH3O2gaJpZM4IrlzT.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/664/files/ab890dff6b4b617b5309af53950c6cac97d994d6#r65641033"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>