Skip to content

Conversation

hahnjo
Copy link
Member

@hahnjo hahnjo commented Sep 5, 2025

All members are moveable and there seems to be no custom code.

All members are moveable and there seems to be no custom code.
@hahnjo hahnjo self-assigned this Sep 5, 2025
fFirstIndex(other.fFirstIndex)
{
std::swap(fDeleter, other.fDeleter);
std::swap(fValues, other.fValues);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this swap is necessary, otherwise the pointer may just get copied and we'd end up freeing the values twice in the destructor, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that's a good point - I found this code because our coverage report says we're not testing it at all, so maybe we should do this and see.

Copy link

github-actions bot commented Sep 5, 2025

Test Results

    20 files      20 suites   4d 0h 23m 41s ⏱️
 3 661 tests  3 660 ✅ 0 💤 1 ❌
71 536 runs  71 530 ✅ 5 💤 1 ❌

For more details on these failures, see this check.

Results for commit 6056627.

@hahnjo hahnjo marked this pull request as draft September 5, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants