<p>I was just building allknn on VS2015 x64 Release. <br>
I was able to get a better work-around by changing some code in ns_model.hpp from:<br>
<code><br>
template<template<typename TreeMetricType,<br>
typename TreeStatType,<br>
typename TreeMatType> class TreeType><br>
using NSType = NeighborSearch<SortPolicy,<br>
metric::EuclideanDistance,<br>
arma::mat,<br>
TreeType><br>
</code></p>
<p>to <br>
<code><br>
template<template<typename TreeMetricType,<br>
typename TreeStatType,<br>
typename TreeMatType> class TreeType><br>
using NSType = NeighborSearch<SortPolicy,<br>
metric::EuclideanDistance,<br>
arma::mat,<br>
TreeType, <br>
TreeType<metric::EuclideanDistance, NeighborSearchStat<SortPolicy>,arma::mat>::template DualTreeTraverser>;<br>
</code></p>
<p>The last default parameter had to be added explicitly. I am not sure if this is a gcc extension or a VC bug.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/476#issuecomment-158584614">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAolTc5siVAanKi31vda6K7rRHymks5pH-MzgaJpZM4GmBm0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/issues/476#issuecomment-158584614"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>