[mlpack-git] [mlpack] Compile Error in Neighbour Search (#476)

Joseph Mariadassou notifications at github.com
Thu Nov 19 19:24:00 EST 2015


This is not a bug in mlpack as much as an issue with Visual C++ compiler (VC14). The compiler throws an error:
  src\mlpack\methods\neighbor_search\ns_model.hpp(76):
 error C3200: 'TreeType<mlpack::metric::EuclideanDistance,mlpack::neighbor::NeighborSearchStat<mlpack::neighbor::NearestNeighborSort>,arma::mat>::DualTreeTraverser':
 invalid template argument for template parameter 'TraversalType', expected a class template 

The offending line is:
NSType<tree::KDTree>* kdTreeNS;

I could work around it by replacing it with:
NeighborSearch<SortPolicy, metric::EuclideanDistance, arma::mat, tree::KDTree>* kdTreeNS;

There are four more errors like that which I have not included.


---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/476
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151119/dfc195bf/attachment.html>


More information about the mlpack-git mailing list