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

Fixes #211 - degenerate erase() bug #212

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Conversation

tclune
Copy link
Member

@tclune tclune commented Feb 16, 2024

The previous logic in some containers resulted in incorrect operations happening when first==last. Effectively, the code would try to copy element x onto itself. This was ok albeit inefficient for the non allocatable cases. However, for the allocatable case I had move_alloc(x, x) which is erronous Fortran.

The previous logic in some containers resulted in incorrect operations
happening when first==last.  Effectively, the code would try to copy
element x onto itself.  This was ok albeit inefficient for the non
allocatable cases.  However, for the allocatable case I had
`move_alloc(x, x)` which is erronous Fortran.
@tclune tclune added the bug Something isn't working label Feb 16, 2024
@tclune tclune merged commit 057a107 into main Feb 16, 2024
10 checks passed
@tclune tclune deleted the hotfix/#211/degenerate-erase-loops branch February 16, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants