Yes that compiles. That was an issue in VS2013. It's been fixed in VS2015.<br>
The issue I think is that 'using' 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 <notifications@github.com><br>
wrote:<br>
<br>
> As far as I can tell perusing the standard, MSVC is in the wrong here.<br>
> Here is a more minimal example that should produce the problem:<br>
><br>
> template<typename A, typename B = double><br>
> class C<br>
> {<br>
><br>
> };<br>
><br>
> template<typename A><br>
> using D = C<A>;<br>
><br>
> int main()<br>
> {<br>
> D<float> d;<br>
> }<br>
><br>
> That compiles fine with gcc 4.9.2 and clang 3.5.0. Does that compile with<br>
> MSVC?<br>
><br>
> If not, I would suggest that maybe a bug should be filed with the<br>
> Microsoft compiler team.<br>
><br>
> In the mean time, the workaround you suggest here is a bit ugly,<br>
> unfortunately, but should still work with gcc and clang, so if<br>
> stereomatchingkiss can also reproduce the error (maybe with the snippet I<br>
> posted too), we can incorporate your fix.<br>
><br>
> —<br>
> Reply to this email directly or view it on GitHub<br>
> <https://github.com/mlpack/mlpack/issues/476#issuecomment-158937726>.<br>
><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;">—<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>