[4.0.0] Require users to explicitly define StringType, etc. #3603
falbrechtskirchinger
started this conversation in
Ideas
Replies: 1 comment
|
Looking into it. This reply was drafted by Claude Code on behalf of @nlohmann, as part of a review of open discussions. |
0 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.
I'm in the process of debugging #3602. It seems that it would be beneficial if users were required to explicitly tell the library what types are StringTypes, etc.
Just because a type is constructible from a string doesn't make it a string type. This can lead to the compiler selecting (or trying to select and failing) the wrong
from_jsonfunction.Leaving this here to be fleshed out at a later date.
All reactions