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

detect C++17 mode in MSVC #3555

Merged
merged 3 commits into from Oct 29, 2023
Merged

detect C++17 mode in MSVC #3555

merged 3 commits into from Oct 29, 2023

Conversation

conradsnicta
Copy link
Contributor

Workaround for the byzantine ways of enabling C++17 mode in the MSVC "compiler".

MSVC uses a custom macro named _MSVC_LANG in addition to (or instead of) the standard __cplusplus macro, depending on how the user enabled C++17 mode (which itself can be confusing).

Related to #3549

Copy link
Member

@shrit shrit left a comment

Choose a reason for hiding this comment

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

Looks good to me. However, I do not have any Windows machine to test it, but give that it passed the tests then it should be fine

src/mlpack/base.hpp Outdated Show resolved Hide resolved
Co-authored-by: Ryan Curtin <ryan@ratml.org>
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. 👍

@conradsnicta conradsnicta merged commit 4df75cc into master Oct 29, 2023
19 checks passed
@conradsnicta conradsnicta deleted the cxx17_detect branch October 29, 2023 12:52
@rcurtin rcurtin mentioned this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants