Skip to content

Add note that VS2017 requires /permissive- to build in C++17 mode #2431

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 3 commits into from
Aug 24, 2020

Conversation

YannickJadoul
Copy link
Collaborator

As discussed on #2089, this (finally) adds a note to the docs that C++17 mode in VS2017 requires the /permissive- flag.

Closes #2089
Closes #2292

@YannickJadoul
Copy link
Collaborator Author

I can't find any other place to add this. I'd have thought this was something to add to the FAQ page, but no existing section seemed fitting. But I'm open to suggestions.

@bstaletic
Copy link
Collaborator

Why not the README? It's where all the supported compilers are mentioned.

@YannickJadoul
Copy link
Collaborator Author

Why not the README? It's where all the supported compilers are mentioned.

The readme currently only contains the minimal version of the compilers (and very summarized; "Microsoft Visual Studio 2015 Update 3 or newer"). Neither VS 2017 nor C++17 are minimal requirements for pybind11, so I was hesitant to throw in those extra lines there? You can still compile perfectly in C++14 mode in VS 2017.

@henryiii
Copy link
Collaborator

I've simplified the matrix by dropping a few extra arguments. We can still get the "max C++" setting by manually placing the CXX standard flag in args2. I'm about to make the setup a little more complicated by putting the dev flag back in.

@henryiii henryiii merged commit 43f390a into pybind:master Aug 24, 2020
@YannickJadoul
Copy link
Collaborator Author

Amazing! Thanks again, @henryiii! :-)

@YannickJadoul YannickJadoul deleted the docs-msvc-c++17-permissive- branch August 24, 2020 22:47
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.

Pybind fails to build with MSVC 19.16 in C++17 mode
3 participants