[mlpack] [mlpack/mlpack] Added copy constructor, move constructor and copy assignment operator. (#826)

Ryan Curtin notifications at github.com
Tue Dec 27 11:21:20 EST 2016


rcurtin commented on this pull request.



>  
+}
+
+template <typename MatType, typename TagType>
+DTree<MatType, TagType>& DTree<MatType, TagType>::operator=(DTree<MatType, TagType>&& obj)
+{
+    if (this != &obj){  

I think the test to see if this is the same as the object being copied is unnecessary.

-- 
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/826#pullrequestreview-14477841
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161227/b8476bae/attachment.html>


More information about the mlpack mailing list