Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Compilation : error C2783: 'void shogun::sg_generic_free(T *)': could not deduce template argument for '__formal' #4443

Closed
kikish opened this issue Dec 18, 2018 · 3 comments

Comments

@kikish
Copy link

kikish commented Dec 18, 2018

Hello,

I have a problem when I try to compile shogun under Windows and Visual Studio 2015.
Within Visual Studio, I launch the Build process on the "shogun" project and I have the following error:

12>D:\Arezki\Downloads\shogun\src\shogun/io/streaming/ParseBuffer.h(274): error C2783: 'void shogun::sg_generic_free(T *)': could not deduce template argument for '__formal'
12>  D:\Arezki\Downloads\shogun\src\shogun/lib/memory.h(159): note: see declaration of 'shogun::sg_generic_free'

Do have an idea on what is going wrong ? Or what I missed ?

Regards,

Arezki.

@gf712
Copy link
Member

gf712 commented Dec 18, 2018

Hi,
That seems to be due to a bug with constexpr in VS2015, according to this. Apparently it can be fixed by upgrading to VS2017 (or using another compiler).

@gf712
Copy link
Member

gf712 commented Dec 18, 2018

Ah, nevermind that expression should give a static const, not a constexpr, so that should work fine.. It might still be worth trying out on VS2017 if you have it?

@vigsterkr vigsterkr added this to To do in Release 7.0.0 Jan 11, 2019
@vigsterkr
Copy link
Member

closing as adding support for 2015 in develop would be way too much work.
@kikish if you want to compile with VS 2015, please try using master branch (latest release)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release 7.0.0
  
To do
Development

No branches or pull requests

3 participants