Skip to content

This might enable building the core library under Visual Studio 2015 #1002

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

Merged
merged 11 commits into from
Jun 29, 2020

Conversation

lemire
Copy link
Member

@lemire lemire commented Jun 28, 2020

Amazingly, if you get the very latest Visual Studio 2015, it seems to work.

(The initial Visual Studio 2015 does not work.)

Fixes #999

@lemire lemire requested a review from jkeiser June 29, 2020 00:56
Copy link
Member

@jkeiser jkeiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I'd want to do many more of these ifdefs, but if that's the extent of it, it seems fine.

@lemire lemire merged commit 0ba76ac into master Jun 29, 2020
@lemire lemire deleted the dlemire/antique_visual_studio branch June 29, 2020 12:43
@lemire
Copy link
Member Author

lemire commented Jun 29, 2020

@jkeiser It is ugly but I think that Visual Studio 2015 had bugs in its C++11 support. This is to be expected when you first adopt a standard.

The std::unique_ptr thing does look like a bug. The compiler tells you that there is no version of the constructor with two parameters (i.e., with a deleter), but this is a lie as per the Visual Studio 2015 documentation. There is probably something else going on... but our code, the code that causes Visual Basic to complain, is flat out textbook C++11 as far as I can see.

Of course, I can investigate deeper but my interest for working out the oddities of old compilers is not great.

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

Successfully merging this pull request may close these issues.

VS2015, Patch 3 (VS14.*) support.
2 participants