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

Fixes #2730 #2731

Merged
merged 5 commits into from
Apr 29, 2021
Merged

Fixes #2730 #2731

merged 5 commits into from
Apr 29, 2021

Conversation

theShmoo
Copy link
Contributor

Added define JSON_VERSION_IS_PREDEFINED
for skipping automatic JSON_HAS_CPP_* detection

Added define JSON_VERSION_IS_PREDEFINED
for skipping automatic JSON_HAS_CPP_* detection
@coveralls
Copy link

coveralls commented Apr 21, 2021

Coverage Status

Coverage increased (+4.0e-05%) to 99.982% when pulling d140a1c on theShmoo:custom-cpp-version into 7126d88 on nlohmann:develop.

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.

Please run make amalgamate to make sure the single header is properly generated. The CI currently fails because this.

include/nlohmann/detail/macro_scope.hpp Outdated Show resolved Hide resolved
@theShmoo
Copy link
Contributor Author

theShmoo commented Apr 24, 2021 via email

@nlohmann
Copy link
Owner

Yeah this sounds great! But I would have to define the new define JSON_HAS_CPP_11 Is this ok?

Oh right - I forgot this. Then I guess the best would be the following:

  • Adjust the if to also check for JSON_HAS_CPP11.
  • Define JSON_HAS_CPP11 if now other C++ standard has been detected. This way, the (otherwise unused) variable is at least always set. This allows to maybe make some compile-time decisions later on, but also to "force" any C++ standard different to how it would have been detected.

What do you think?

@theShmoo
Copy link
Contributor Author

theShmoo commented Apr 24, 2021 via email

David Pfahler added 2 commits April 26, 2021 08:09
JSON_VERSION_IS_PREDEFINED with JSON_HAS_CPP_11
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 29, 2021
@nlohmann nlohmann added this to the Release 3.9.2 milestone Apr 29, 2021
@nlohmann nlohmann merged commit 8a29a6e into nlohmann:develop Apr 29, 2021
@nlohmann
Copy link
Owner

Thanks!

@theShmoo
Copy link
Contributor Author

Thank you very much for your support!

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.

Possibility to use with custom c++ version to use in intel sgx enclaves
3 participants