-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
I have a verbatim copy of adl_serializer for boost::optional from the documentation. Version 2.1.1 of the library.
nlohmann::json json{{"test", nullptr}};
boost::optional<int> works = json["test"];
boost::optional<int> broken;
broken = json["test"];
Assignment to 'broken' variable won't go through the adl_serializer and will throw std::domain_error: type must be number, but is null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation