[mlpack-git] [mlpack] Compile Error in Neighbour Search (#476)
Ryan Curtin
notifications at github.com
Mon Nov 23 08:52:52 EST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151123/7d3509d8/attachment.html>
More information about the mlpack-git
mailing list