[mlpack-git] [mlpack/mlpack] Remove code redundancy in ns_model_impl.hpp (#674)
stereomatchingkiss
notifications at github.com
Tue Jun 7 14:05:58 EDT 2016
>since we would still have to write an operator() for each possible TreeType
Maybe template can help?
```
class ReferenceSet: public boost::static_visitor<void>
{
public:
template<typename T>
void operator()(T *tree) const
{
tree->ReferenceSet();
}
};
```
---
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-224364544
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160607/36498923/attachment.html>
More information about the mlpack-git
mailing list