Skip to content
Discussion options

You must be logged in to vote

I think I found a reason
Its because basic_json now derives from nlohmann::detail::json_base_class, introduced here
Base class is one of the "associated entities" for ADL, and it includes its innermost namespace other than the lookup set, so that's why nlohmann::details is exposed to ADL now.

I doubt this side-effect was intended by the change above, so I guess it would be a bad idea to rely on it. Although there are already couple of places in our project (that I know of) that work only because of this :))).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gregmarr
Comment options

Answer selected by klezki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants