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

appveyor.yml: Compile and test with latest version for __cplusplus ma… #1958

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

t-b
Copy link
Contributor

@t-b t-b commented Feb 27, 2020

…cro on MSVC

According to 1 the C++ macro __cplusplus has always the value 199711L
even if you enable later version of C++ support via /std.

Use one job with /Zc:__cplusplus defined so that we know that it
compiles.

I can't reopen #1810.

Close #1695.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7553b08 on t-b:add-zc-flag-for-msvc into 973c52d on nlohmann:develop.

@t-b t-b force-pushed the add-zc-flag-for-msvc branch from 7553b08 to d613f09 Compare March 19, 2020 11:59
@t-b
Copy link
Contributor Author

t-b commented Mar 20, 2020

@nlohmann Ready, I've included your hedley update already.

Copy link
Owner

@nlohmann nlohmann 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.

@dota17
Copy link
Contributor

dota17 commented Mar 25, 2020

I had made a test and it was ok. I think this can be merged.

@t-b
Copy link
Contributor Author

t-b commented Apr 1, 2020

@nlohmann Can we merge this?

@nlohmann
Copy link
Owner

nlohmann commented Apr 5, 2020

Could you please rebase to the latest develop branch?

nlohmann and others added 2 commits April 6, 2020 11:56
…cro on MSVC

According to [1] the C++ macro __cplusplus has always the value 199711L
even if you enable later version of C++ support via /std.

Use one job with /Zc:__cplusplus defined so that we know that it
compiles.

[1]: https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=vs-2019
@t-b
Copy link
Contributor Author

t-b commented Apr 6, 2020

@nlohmann Done.

@t-b t-b force-pushed the add-zc-flag-for-msvc branch from 9ee765a to 5607dfb Compare April 6, 2020 09:56
Copy link
Owner

@nlohmann nlohmann 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.

@nlohmann nlohmann self-assigned this Apr 10, 2020
@nlohmann nlohmann added this to the Release 3.7.4 milestone Apr 10, 2020
@nlohmann nlohmann merged commit 299feb1 into nlohmann:develop Apr 10, 2020
@nlohmann
Copy link
Owner

Thanks!

@nlohmann
Copy link
Owner


🔖 Release item

This issue/PR will be part of the next release of the library. This template helps preparing the release notes.

Type

  • ✨ New Feature
  • 🐛 Bug Fix
  • ⚡️ Improvement
  • 🔨 Further Change
  • 🔥 Deprecated function

Description


@t-b t-b deleted the add-zc-flag-for-msvc branch April 10, 2020 11:17
@nlohmann nlohmann added the platform: visual studio related to MSVC label Apr 10, 2020
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.

/Zc:__cplusplus leads to C2416
4 participants