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

Joseph Mariadassou notifications at github.com
Mon Nov 23 16:53:37 EST 2015


Yes that compiles. That was an issue in VS2013. It's been fixed in VS2015.
The issue I think is that 'using' does not take into account default
parameters in MSVC 14 (Visual Studio 2015)

On Tue, Nov 24, 2015 at 12:52 AM, Ryan Curtin <notifications at github.com>
wrote:

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



-- 
Joseph Chakravarti Mariadassou
http://thesundayprogrammer.com


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


More information about the mlpack-git mailing list