Use the provided allocator in destroy() (#4842)
Uses the provided allocator to allocate the stack used to avoid recursion in the destroy() implementation used by ~basic_json.
This addresses issue #4842, by changing the std::vector to use the user-provided allocatorl
coverage: 99.19%. remained the same when pulling ff3eaf8963647b08d4d8e57719d20ce9743ee8cc on veselink1:develop into d33ecd3f3bd11e30aa8bbabb00e0a9cd3f2456d8 on nlohmann:develop.
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!
Please rebase to the latest develop branch to have a green CI.
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!