[PR #15525] Fix small_vector issues when assigning it to itself #30662

Open
opened 2026-01-31 09:42:10 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15525

State: closed
Merged: Yes


This commit achieves fixes the issue as described in the title by
checking whether the this and other pointer are identical.
As an added bonus it makes the copy and move constructors slightly
cheaper, as they don't try to destruct existing data anymore,
which doesn't exist anyways.

Validation Steps Performed

  • It blends
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15525 **State:** closed **Merged:** Yes --- This commit achieves fixes the issue as described in the title by checking whether the `this` and `other` pointer are identical. As an added bonus it makes the copy and move constructors slightly cheaper, as they don't try to destruct existing data anymore, which doesn't exist anyways. ## Validation Steps Performed * It blends ✅
claunia added the pull-request label 2026-01-31 09:42:10 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30662