[mlpack-git] [mlpack/mlpack] Remove code redundancy in ns_model_impl.hpp (#674)

stereomatchingkiss notifications at github.com
Tue Jun 7 11:49:26 EDT 2016


I think it is possible if you do not wish to change the public api, you can construct the boost::variant based on the enum. This way, there is only one place need to use the if else, other operations can rely on the visitor.

---
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/issues/674#issuecomment-224324167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160607/3a27ced6/attachment.html>


More information about the mlpack-git mailing list