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

Force C++17 for MSVC #3318

Merged
merged 5 commits into from Nov 18, 2022
Merged

Force C++17 for MSVC #3318

merged 5 commits into from Nov 18, 2022

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Nov 16, 2022

The backporting of core::v2::any that we have does not work with MSVC; I have not dug into the reasons why, since it is so easy to just set the MSVC compiler options /std:c++17 and /Zc:__cplusplus (the second of these is necessary so that the __cplusplus macro is set correctly).

So, this patch (which comes from microsoft/vcpkg#27616) issues an error if the user has not set those two options. This is preferable to a mouthful of errors about core::v2::any. :)

@conradsnicta
Copy link
Contributor

Ah, so much fun with that "compiler" again.

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants