Replies: 2 comments 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom
adl_serializer
forstd::optional<T>
.I'm able to deserialize
std::nullopt
fromnlohmann::json{}
usingget
, butstatic_cast
fails:nlohmann::json{}.get<std::optional<double>>()
returnsnullopt
as 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