You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 originalstd::map
, which is:using json = nlohmann::basic_json<nlohmann::fifo_map>;
However, when I build, the compiler tells me this error:
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
The text was updated successfully, but these errors were encountered: