Skip to content

error: ‘ordered_json’ in namespace ‘nlohmann’ does not name a type #2380

Answered by nlohmann
SrideviRamesh asked this question in Q&A
Discussion options

You must be logged in to vote

I cannot reproduce this with Xcode 12 using the current develop branch. After adding semicolons to lines 9 and 10, the program compiles and produces

{
    "name": "Jan",
    "age": 20
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SrideviRamesh
Comment options

@nlohmann
Comment options

@SrideviRamesh
Comment options

@nlohmann
Comment options

Answer selected by SrideviRamesh
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