NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT throw an exception with an empty json #4507
Closed
1 of 2 tasks
Labels
Milestone
Description
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT should not throw an exception when the json instance is empty and should use the default values of the member fields
Reproduction steps
run the Minimal code example and get the exception
Expected vs. actual results
don't expect to get exception with an empty JSON
expect that foo member fields are filled with they default values
Minimal code example
Error messages
No response
Compiler and operating system
clang++ / C++17 / Windows OS
Library version
ref: v3.11.2 - commit: 7d2f9ad500cf062394040f44d006791ff7cfc1c1
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: