mirror of
https://github.com/nlohmann/json.git
synced 2026-10-10 16:37:14 +00:00
Merge branch 'develop' into claude/todo-191-plan-508110
Regenerate tools/api_checker/api_surface.json with the CI libclang (18.1.1 on Linux) and point the new ordered_map links in features/performance.md to api/ordered_map/index.md. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
165 files changed
+41602
-4447
No files matched your search
@@ -285,6 +285,9 @@ public:
|
||||
|
||||
for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
|
||||
{
|
||||
// false positive: Infer's model of std::string keeps the buffer of a
|
||||
// moved-from string, so it assumes a buffer is destroyed twice
|
||||
// @infer-ignore USE_AFTER_DELETE
|
||||
it->~value_type(); // destroy but keep allocation
|
||||
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user