Yes that compiles. That was an issue in VS2013. It&#39;s been fixed in VS2015.<br>
The issue I think is that &#39;using&#39; does not take into account default<br>
parameters in MSVC 14 (Visual Studio 2015)<br>
<br>
On Tue, Nov 24, 2015 at 12:52 AM, Ryan Curtin &lt;notifications@github.com&gt;<br>
wrote:<br>
<br>
&gt; As far as I can tell perusing the standard, MSVC is in the wrong here.<br>
&gt; Here is a more minimal example that should produce the problem:<br>
&gt;<br>
&gt; template&lt;typename A, typename B = double&gt;<br>
&gt; class C<br>
&gt; {<br>
&gt;<br>
&gt; };<br>
&gt;<br>
&gt; template&lt;typename A&gt;<br>
&gt; using D = C&lt;A&gt;;<br>
&gt;<br>
&gt; int main()<br>
&gt; {<br>
&gt;   D&lt;float&gt; d;<br>
&gt; }<br>
&gt;<br>
&gt; That compiles fine with gcc 4.9.2 and clang 3.5.0. Does that compile with<br>
&gt; MSVC?<br>
&gt;<br>
&gt; If not, I would suggest that maybe a bug should be filed with the<br>
&gt; Microsoft compiler team.<br>
&gt;<br>
&gt; In the mean time, the workaround you suggest here is a bit ugly,<br>
&gt; unfortunately, but should still work with gcc and clang, so if<br>
&gt; stereomatchingkiss can also reproduce the error (maybe with the snippet I<br>
&gt; posted too), we can incorporate your fix.<br>
&gt;<br>
&gt; —<br>
&gt; Reply to this email directly or view it on GitHub<br>
&gt; &lt;https://github.com/mlpack/mlpack/issues/476#issuecomment-158937726&gt;.<br>
&gt;<br>
<br>
<br>
<br>
-- <br>
Joseph Chakravarti Mariadassou<br>
http://thesundayprogrammer.com<br>


<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-159077469">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFC_rzDH1fL0cfw2Uc-zqTq75BqOdks5pI4JggaJpZM4GmBm0.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-159077469"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>