mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 11:42:51 +00:00
fix for previous commit
This commit is contained in:
@@ -10007,11 +10007,11 @@ basic_json_parser_63:
|
||||
{
|
||||
// add operations in reverse order to avoid invalid
|
||||
// indices
|
||||
result.insert(result.begin() + end_index,
|
||||
result.insert(result.begin() + end_index, object(
|
||||
{
|
||||
{"op", "remove"},
|
||||
{"path", path + "/" + std::to_string(i)}
|
||||
});
|
||||
}));
|
||||
++i;
|
||||
}
|
||||
|
||||
|
||||
@@ -9317,11 +9317,11 @@ class basic_json
|
||||
{
|
||||
// add operations in reverse order to avoid invalid
|
||||
// indices
|
||||
result.insert(result.begin() + end_index,
|
||||
result.insert(result.begin() + end_index, object(
|
||||
{
|
||||
{"op", "remove"},
|
||||
{"path", path + "/" + std::to_string(i)}
|
||||
});
|
||||
}));
|
||||
++i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user