Replies: 2 comments 6 replies
-
|
With #4036 we recently updated the conversion from/to |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
It's the same on the So let me rephrase my question: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom
adl_serializerforstd::optional<T>.I'm able to deserialize
std::nulloptfromnlohmann::json{}usingget, butstatic_castfails:nlohmann::json{}.get<std::optional<double>>()returnsnulloptas expectedstatic_cast<std::optional<double>>(nlohmann::json{})throws.Is this behavior intended?
https://godbolt.org/z/TEGqnTcoP
Beta Was this translation helpful? Give feedback.
All reactions