[mlpack-git] [mlpack/mlpack] Use move semantics to set a given reference tree in NeighborSearch class. (#743)
Ryan Curtin
notifications at github.com
Wed Aug 3 22:59:44 EDT 2016
> @@ -407,6 +407,12 @@ BinarySpaceTree(BinarySpaceTree&& other) :
> other.furthestDescendantDistance = 0.0;
> other.minimumBoundDistance = 0.0;
> other.dataset = NULL;
> +
> + //Set new parent.
> + if (left)
> + left->parent = this;
> + if (right)
> + right->parent = this;
Nice catch, thanks.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/743/files/d2728d95174e3eee3b867abbcb194669f14ccb22#r73456026
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160803/5c3823dd/attachment.html>
More information about the mlpack-git
mailing list