mirror of
https://github.com/nlohmann/json.git
synced 2026-07-11 21:15:10 +00:00
0e535ba3bc
Adds two cases to the existing null-handling regression test for std::optional<T>: assignment (opt = json_null) throws for the same reason as direct construction, and get_to() correctly yields std::nullopt. Prompted by a review comment on #5246 asking for a fuller regression matrix; construction and get<optional<T>>() were already covered by #5247. Signed-off-by: Niels Lohmann <mail@nlohmann.me>