Skip to content

A weird building problem :-( #1774

@tanpero

Description

@tanpero

I have a small problem.
I need to keep the insertion order of the JSON keys and output them. According to the existing suggestion, I used nlohmann::fifo_map instead of the original std::map, which is:

using json = nlohmann::basic_json<nlohmann::fifo_map>;

However, when I build, the compiler tells me this error:

add_key: isn't the member of std::less<void>

I guess nlohmann::fifo_map may need its own template parameters, but this depends on the type in the JSON library, so it won't work.
I checked the related issue, but others didn't seem to have encountered this problem. I want to know how this problem should be solved.
My development environment is: Visual Studio 2017
Thanks! :-D

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions