<p>In <a href="https://github.com/mlpack/mlpack/pull/664#discussion_r67961063">src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value_impl.hpp</a>:</p>
<pre style='color:#555'>> + {
> + localDataset = NULL;
> + numValues = 0;
> + }
> + }
> +}
> +
> +template<typename TreeElemType>
> +template<typename TreeType>
> +void DiscreteHilbertValue<TreeElemType>::Copy(TreeType* dst, TreeType* src)
> +{
> + DiscreteHilbertValue<TreeElemType> &dstVal = dst->AuxiliaryInfo().HilbertValue();
> + DiscreteHilbertValue<TreeElemType> &srcVal = src->AuxiliaryInfo().HilbertValue();
> +
> + dst.LocalDataset() = src.LocalDataset();
> + dst.NumValues() = src.NumValues();
</pre>
<p>I agree, it is better to use a copy constructor and an operator =.</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/664/files/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67961063">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGxVAzs8v3dZMLs0_7Kxpz2ug7ppks5qOGA2gaJpZM4IrlzT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJ41lnQHQRvFzGr8RAHaTwV53sVtks5qOGA2gaJpZM4IrlzT.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/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67961063"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>