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

Joseph Mariadassou notifications at github.com
Fri Nov 20 22:57:39 EST 2015


I was just building allknn on VS2015 x64 Release. 
I was able to get a better work-around by changing some code in ns_model.hpp from:
 <code >
template\<template\<typename TreeMetricType,
                    typename TreeStatType,
                    typename TreeMatType> class TreeType>
  using NSType = NeighborSearch\<SortPolicy,
                                metric::EuclideanDistance,
                                arma::mat,
                                TreeType>
</code>

to 
<code>
 template\<template\<typename TreeMetricType,
                    typename TreeStatType,
                    typename TreeMatType> class TreeType>
  using NSType = NeighborSearch\<SortPolicy,
                                metric::EuclideanDistance,
                                arma::mat,
                                TreeType, 
	                             TreeType\<metric::EuclideanDistance, NeighborSearchStat\<SortPolicy>,arma::mat>::template DualTreeTraverser>;
</code>

The last default parameter had to be added explicitly. I am not sure if this is a gcc extension or a VC bug.

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


More information about the mlpack-git mailing list