-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Fix NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT with an empty JSON instance #4508
base: develop
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@gregmarr I will update the PR according to our decision to change only this macro NLOHMANN_JSON_FROM_WITH_DEFAULT I will change only this file: include\nlohmann\detail\macro_scope.hpp should also add a test case or update a previous one? Thanks |
8045369
to
4d5b1a6
Compare
@NissimBendanan
|
|
…TRUSIVE_WITH_DEFAULT work with an empty JSON instance
4d5b1a6
to
b5cc223
Compare
🔴 Amalgamation check failed! 🔴The source code has not been amalgamated. @NissimBendanan |
I don't understand how to get rid of those errors. here in Amalgamation check failed! 🔴 Format (1)
|
Use Astyle 3.1 and run make amalgamate. |
I am using astyle 3.1: nbendana@tlv-wp4ww: |
for this failure: ci_static_analysis (ci_test_amalgamation) I run locally without error:
|
🔴 Amalgamation check failed! 🔴The source code has not been amalgamated. @NissimBendanan |
Do not throw an exception when trying to get default value from empty json
fix the issue #4507
Pull request checklist
Read the Contribution Guidelines for detailed information.
include/nlohmann
directory, runmake amalgamate
to create the single-header filessingle_include/nlohmann/json.hpp
andsingle_include/nlohmann/json_fwd.hpp
. The whole process is described here.Please don't
#ifdef
s or other means.