-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionstate: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionstate: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details