Skip to content

Cannot include/using from within a namespace or class #2381

Answered by gregmarr
elaine-jackson asked this question in Q&A
Discussion options

You must be logged in to vote

You definitely shouldn't do that. You've just introduced all of these types inside the Modals namespace when they expect to be in the global namespace. This extends not just to the types from json.hpp but also to all the types in all the standard headers included by the json.hpp header.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elaine-jackson
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