Missing "void insert( InputIt first, InputIt last );" overload in nlohmann::ordered_map #2490
Closed
1 of 3 tasks
Labels
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
I tried to explicitly instantiate ordered_json to improve my compilation time. Unfortunately, it doesn't work because nlohmann::ordered_map is missing ranged insert overload that is requested from
void basic_json::insert(const_iterator first, const_iterator last)
See ranged std::map::insert (7)
https://en.cppreference.com/w/cpp/container/map/insert
Can you provide a small but working code example?
https://godbolt.org/z/8o5cbf
Possible compiler output:
My current dirty fix is:
It's not optimized and I'm not tested if it works correctly, or just compiles.
Which version of the library did you use?
develop
branchThe text was updated successfully, but these errors were encountered: