<p>In <a href="https://github.com/mlpack/mlpack/pull/709#discussion_r68849427">src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -424,7 +419,10 @@ class RectangleTree
&gt;     *
&gt;     * @param index Index of point for which a dataset index is wanted.
&gt;     */
&gt; -  size_t Point(const size_t index) const;
&gt; +  const size_t&amp; Point(const size_t index) const { return points[index]; }
</pre>
<p>You're right, the reference is not needed here.</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/709/files/707efdc2a6e1fec461942cfa81323ea232f3427d#r68849427">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFM2BGYEdydsIgF1tl9h9O4oJ9A0Aks5qQZVcgaJpZM4I_icO">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIm2qjKl6D8T-yCOnSCT1PQ_eBKyks5qQZVcgaJpZM4I_icO.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/709/files/707efdc2a6e1fec461942cfa81323ea232f3427d#r68849427"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>