<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&lt;template&lt;typename TreeMetricType,<br>
                    typename TreeStatType,<br>
                    typename TreeMatType&gt; class TreeType&gt;<br>
  using NSType = NeighborSearch&lt;SortPolicy,<br>
                                metric::EuclideanDistance,<br>
                                arma::mat,<br>
                                TreeType&gt;<br>
</code></p>

<p>to <br>
<code><br>
 template&lt;template&lt;typename TreeMetricType,<br>
                    typename TreeStatType,<br>
                    typename TreeMatType&gt; class TreeType&gt;<br>
  using NSType = NeighborSearch&lt;SortPolicy,<br>
                                metric::EuclideanDistance,<br>
                                arma::mat,<br>
                                TreeType, <br>
                                 TreeType&lt;metric::EuclideanDistance, NeighborSearchStat&lt;SortPolicy&gt;,arma::mat&gt;::template DualTreeTraverser&gt;;<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;">&mdash;<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>