Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only destruct elements no longer in use when erasing #43

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

tearfur
Copy link
Contributor

@tearfur tearfur commented Mar 9, 2024

Fixes #42.

Related #23.

@tearfur tearfur force-pushed the vector-erase branch 5 times, most recently from 7d0612a to b8fb5a4 Compare March 9, 2024 15:14
@tearfur tearfur marked this pull request as draft March 9, 2024 15:15
@tearfur tearfur marked this pull request as ready for review March 9, 2024 17:49
@tearfur tearfur changed the title fix: destruct elements no longer in use only when erasing fix: only destruct elements no longer in usewhen erasing Mar 9, 2024
@tearfur tearfur changed the title fix: only destruct elements no longer in usewhen erasing fix: only destruct elements no longer in use when erasing Mar 10, 2024
@alandefreitas
Copy link
Owner

I had a look already. Looks great. Is it good to go?

@tearfur
Copy link
Contributor Author

tearfur commented Mar 11, 2024

Yes, please go ahead.

@alandefreitas alandefreitas merged commit 9d66966 into alandefreitas:develop Mar 11, 2024
5 checks passed
@alandefreitas
Copy link
Owner

Done. Thanks for the work you've been doing in the library. We'll create another release once all the stuff you want is merged.

@tearfur tearfur deleted the vector-erase branch March 11, 2024 01:09
@tearfur
Copy link
Contributor Author

tearfur commented Mar 11, 2024

I don't have anything more to contribute at the moment, so feel free to go with your plans!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

small::vector invalidates std::shared_ptr if some element in the middle is erased
2 participants